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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
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