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|https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@0.9/manual/index.html#ui-interaction-setup], 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
- Warning of an unknown Script missing is logged when selecting VFX in Play Mode
- Vertical and horizontal scrollbars appear and disappear when dragging an attribute to a different position within the Shader Graph Hierarchy
- AudioSource.PlayDelayed() does not work with Audio Random Containers
- Compatible with the VFX Graph Shader Graph can't be dragged and dropped into the "Output" block from the Project window
- [Silicon] Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
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