Skip to content

Commit 24a8aea

Browse files
committed
Make sure that Input Profile Model loads
1 parent 97ac586 commit 24a8aea

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Packages/webxr-interactions/Runtime/Scripts/ControllerInteraction.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ private void HandleProfilesList(Dictionary<string, string> profilesList)
227227
return;
228228
}
229229
hasProfileList = true;
230+
231+
if (controllerVisible && useInputProfile)
232+
{
233+
SetControllerVisible(true);
234+
}
230235
}
231236

232237
private void LoadInputProfile()

Packages/webxr-interactions/Samples~/Desert/Prefabs/WebXRCameraSet.prefab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ Camera:
443443
y: 0
444444
width: 0.5
445445
height: 1
446-
near clip plane: 0.3
446+
near clip plane: 0.1
447447
far clip plane: 1000
448448
field of view: 60
449449
orthographic: 0
@@ -649,7 +649,7 @@ Camera:
649649
y: 0
650650
width: 0.5
651651
height: 1
652-
near clip plane: 0.3
652+
near clip plane: 0.1
653653
far clip plane: 1000
654654
field of view: 60
655655
orthographic: 0

Packages/webxr/Runtime/Scripts/WebXRController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ private void HandleInputDevicesConnected(InputDevice device)
494494
profileName += "-button";
495495
}
496496
profiles = new string[]{profileName};
497-
Debug.LogError(profileName);
498497
}
499498
TryUpdateButtons();
500499
SetControllerActive(true);

0 commit comments

Comments
 (0)