Skip to content

Commit 2448a5d

Browse files
committed
Merge pull request #10203 from marek-stoj/patch-1
UnityTouchDeviceManager now respects its IsEnabled property
1 parent b3ce15a commit 2448a5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/MRTK/Core/Providers/UnityInput/UnityTouchDeviceManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ public override void Update()
6161
{
6262
using (UpdatePerfMarker.Auto())
6363
{
64+
if (!IsEnabled)
65+
{
66+
return;
67+
}
68+
6469
base.Update();
6570

6671
// Ensure that touch up and source lost events are at least one frame apart.

0 commit comments

Comments
 (0)