cancel
Showing results for 
Search instead for 
Did you mean: 

XR RIG loses use of UI and locomotion moving from scene to scene

wakkawakkawakka
Level 4

After isolating the XR rig components and consolidating the event system as a single parented prefab my XR Raycast Interactors will not move beyond the UIs when moving from scene(0) to scene(1) and the locomotion system becomes completely inoperable if I move from back from scene(1) to scene(0).  Here is the in script attached to the empty GameObject parent of The XR Rig, EventSystem which contains the Event System and XRUI input module, and XR Interaction manager. I am able to use the buttons from scene to scene and the components move to the Do Not Destroy OnLoad scene as intended in the editor (see pic) however, my raycasts turn to jelly and anchor in place and wont move beyond the canvas and locomotion becomes impossible upon return to scene(0)  

https://www.youtube.com/watch?v=9AiwaOBUjL8

 

public class DontDestroy : MonoBehaviour

{ public static DontDestroy instance;

void Start() { if (instance == null) { instance = this; DontDestroyOnLoad(this); } else { Destroy(gameObject); } } }

1 REPLY 1

wakkawakkawakka
Level 4

DONOTDESTROYONLOAD SCENEDONOTDESTROYONLOAD SCENE