Questions tagged [unity-xr]
12 questions
2
votes
2 answers
Unity Crash when entering Play Mode - Unity XR VR
Unity is crashing when entering the play mode.
This does not happen if my Quest 2 is connected to Unity
I use the Open / Oculuus XR Plugins
I use the Sample Controller example with some custom code
Attached to this, you may find the Input
Does any…

Fabian
- 71
- 2
- 10
0
votes
0 answers
Object is not spawning as per the given coordinates under Image Marker in Unity
I am creating two scenes in unity.
In Scene 1, first, with the help of Image Marker, I will set a zero coordinate gameobject, and based on that I am instantiate gameobjects on screen touch and saving there coordinates in csv.
In Scene 2, again with…

P D
- 23
- 8
0
votes
1 answer
Unity UI buttons are not being highlighted when the cursor hovers over them on the Quest 2
So I'm having an issue where Unity UI buttons are not being highlighted nor animated when the raycast is over them. It works fine in the Unity editor, but not when I build the apk to the quest 2. The clicks work fine, is when highlighted the…
0
votes
0 answers
Detect when UnityXR laser is pointing to object
I would like know how using unity XRPackage I can detect when the XRRAyInteractor is poiting to a specific 3D object. Can anyone demonstrate that to me?

Icaro Amorim
- 385
- 1
- 3
- 13
0
votes
0 answers
Unity animation not playing when XR Interactable is picked up
I'm trying to make a simple VR game where you shoot robots. I have a gun that I want to have spin when i reload, since im too lazy to code actual reloading systems where you manually load a mag in. I have a animator componenent where the entry node…
0
votes
3 answers
How can I get a reference to the UI element that is currently hovered by an XRRayInteractor?
I am working with XR Interaction Toolkit 2.2.0 and Unity 2022.2.7f1 and I have a Complete XR Origin Set Up Prefab in my Scene with some UI elements to click on (buttons with Tracked Device Ray Caster Script). I have a XR Device Simulator to move the…

Aurélien MARCHAL
- 17
- 4
0
votes
1 answer
Unity XR - Rotate a grabbed object with XRGrabInteractable around its pivot
I'm pretty new to VR development with Unity, what I need to do is to grab a clockwork object and rotate it around its pivot by moving the right hand controller, like if I had to do that in real life
Here's the scenario:
Here's the code I'm using in…

Frank Eno
- 2,581
- 2
- 31
- 54
0
votes
0 answers
XR grab interactable object disappears when grabbed
I'm building a spaceship game for Oculus Quest. Inside the ship I added a lever to control its speed which has a rigidbody and an xr grab interactable component attached to it and a hinge joint as well.
The lever works well when the ship is stopped…

Nuri
- 1
- 1
0
votes
0 answers
Why is my Unity script not able to be loaded?
I am making a vr game and I am using UnityXR to do so. I am making a script that will have two attach points for an object (pistol). These points change based on which hand is holding the object.
Here is my code:
using…

BumbleFuzzz
- 15
- 1
- 3
0
votes
1 answer
Unity XR hands "shaking" when XR rig moved away from initial location
I have a project with Unity XR and have just implemented movement of the XR rig, however I notice a very unpleasant effect: XR hands start "shaking" when the XR rig is moved away from the initial location.
Here is how it looks…

Kras
- 43
- 7
0
votes
1 answer
ObjectAnchorsWorldManager.cs error : type or namespace name WindowsMR does not exist in the namespace UnityEngine.XR
I'm following the tutorial from Microsoft in order to create a multi-users experience in augmented reality between an Hololens and an Android app.
After installing the following packages…

ChocooPanda
- 97
- 1
- 11
0
votes
0 answers
Unity XR Detect VR controller touch on a GameObject Unity VR
How can I detect the VR controller touch on a specific game object in unity XR using HTC vive controller? I am using the XR interaction toolkit.
I tried to use XR Grab Interactable But it doesn't provide ontouch enter or exit event.

Muhammad Faizan Khan
- 10,013
- 18
- 97
- 186