Skip to content

Commit 3139707

Browse files
fix meta aim hands for leap subsystem
(cherry picked from commit edebf89)
1 parent 073fa13 commit 3139707

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Packages/Tracking/Core/Runtime/Scripts/XRHandsSubsystem/XRHandsInputActionUpdater.cs

+14
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ private static void Startup()
6767
currentSubsystem.updatedHands -= UpdateHands;
6868
currentSubsystem.updatedHands += UpdateHands;
6969

70+
// Create meta hands if required
71+
if (ultraleapSettings.updateMetaInputSystem)
72+
{
73+
if (MetaAimHand.left == null)
74+
{
75+
MetaAimHand.left = MetaAimHand.CreateHand(UnityEngine.XR.InputDeviceCharacteristics.Left);
76+
}
77+
if (MetaAimHand.right == null)
78+
{
79+
MetaAimHand.right = MetaAimHand.CreateHand(UnityEngine.XR.InputDeviceCharacteristics.Right);
80+
}
81+
}
82+
83+
7084
SetupDefaultStateGetters();
7185

7286
OnDeviceAdded();

0 commit comments

Comments
 (0)