Search Issue Tracker
Fixed
Fixed in 2.0.4, 2.2.0
Votes
6
Found in [Package]
2.0.2
Issue ID
XRIT-18
Regression
No
XR Interactor Reticle Visual not working with UI
I'm trying to create a reticle object using XR Interaction Toolkit for both 3D and UI interaction. I've setup my scene just as described here, but instead of using a XR Ray Interactor with a XR Interactor Line Visual (which works fine on the UI), I'm trying to use a XR Interactor Reticle Visual. This doesn't work on the UI, but if I add a 3D object with a XR Grab Interactable it works as intended. Is this behavior by design or unusual, because for me it's rather strange?
This is the inspector view of the Reticle game object.
!upload_2021-11-8_17-48-9.png!
Comments (1)
-
Dennis-DeRyke
Feb 17, 2023 04:23
Tests with the following configurations show correct UI interaction using XR Ray Interactor with XR Interaction Reticle Visual in XR Interaction Toolkit 2.0.4 and 2.2.0.
Unity 2020.3.44f1
XR Interaction Toolkit 2.0.4 and 2.2.0
Quest One
BuiltIn RP
MacOS 12.6.1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Audio sound is lower in the Player compared to the native music player
- Feet slide and misalign when playing retargeted animations
- IndexOutOfRangeException is thrown in NativePassCompiler when a graphics buffer is used in more than 5 render passes
- "Undo Stack Overflow" error is thrown, and Undo History is deleted when multiselected GameObjects are reparented to their GrandParents
- SearchColumn of type "ObjectReference" does not get refreshed for the custom SearchProvider when lighting generation finishes
Resolution Note (fix version 2.2.0):
Fixed issue where `XRInteractorReticleVisual` script did not properly detect ray casts with UI objects. The fix is to first try the `XRRayInteractor` `TryGetCurrentRaycast` result, which takes into consideration UI elements.
Tests with the following configurations show correct UI interaction using XR Ray Interactor with XR Interaction Reticle Visual.
Unity 2020.3.44f1
XR Interaction Toolkit 2.0.4 and 2.2.0
Quest One
BuiltIn RP
MacOS 12.6.1
Resolution Note (fix version 2.0.4):
Fixed issue where `XRInteractorReticleVisual` script did not properly detect ray casts with UI objects.
Tests with the following configurations show correct UI interaction using XR Ray Interactor with XR Interaction Reticle Visual.
Unity 2020.3.44f1
XR Interaction Toolkit 2.0.4 and 2.2.0
Quest One
BuiltIn RP
MacOS 12.6.1