- Home /
How do I keep track of a grabbable object in Unity XR?
In my game, a gameObject with a custom script manages an object that is set to be grabbable, via XR Grab Interactable Component. However, whenever I grab the object, I cannot refer to it in my script. Instead, it gives me a UnassignedReferenceException.
How can I solve this problem?
question2.png
(156.0 kB)
question.png
(408.0 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613042158im_/https://answers.unity.com/themes/thub/images/avi.jpg)