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
- Baked Lightmap ”View” button text is aligned incorrectly
- Lightmap Asset icon changes colours after Baked Lightmap Viewer window is opened
- VideoClipImporter preset not applied when applying Preset Selector on already imported video clips
- Frame Debugger gets disabled when any Editor window is maximised and minimised
- TextMeshPro InputField view is not updated when OnEndEdit is triggered
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