Search Issue Tracker
Fixed in 0.10.0-preview.3
Votes
0
Found in [Package]
0.9.4
Issue ID
1231662
Regression
No
[XR Interaction Toolkit] SelectingInteractor variable is null after OnSelectEnter is triggered
How to reproduce:
1. Open attached project ("UnityBugOnSelectEnterCallback.zip")
2. Open SampleScene scene
3. Enter Play mode
4. Pick up the cube with the right controller
5. Open Console window
Expected result: SelectingInteractor is equal to a reference of the Interactor that has triggered the OnSelectEnter
Actual result: SelectingInteractor is null
Reproducible with: 2019.3.9f1 (0.9.3), 2020.1.0b5 (0.9.4), 2020.2.0a7 (0.9.4)
Could not test with: 2017.4.39f1 (Packages are not present), 2018.4.20f1 (No XR Interaction package)
Notes:
- Tested with Oculus Rift
-
stuart567
Apr 26, 2021 16:14
Hi, I'm getting a similar issue which isn't fixed:
public override bool IsSelectableBy(XRBaseInteractor interactor)
{
bool IsAlreadyGrabbed = selectingInteractor && interactor.Equals(selectingInteractor);
return base.IsSelectableBy(interactor) && IsAlreadyGrabbed;
}this scrips is inheriting from XRGrabInteractable and when I grab something its saying selectingInteractor is null.
im using Unity version 2019.4.17 and the XR INTERACTION TOOLKIT version 0.10.0-preview.7.
Thanks in advance.
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 0.10.0-preview.3):
This issue has been fixed in a future version of XR Interaction.
Fixed with 2019.4.14f1 (0.10.0-preview.7)