Forum rules - please read before posting.

Scene switching in VR with XR Toolkit

Hi, Chris!

I've been working on a VR game with Adventure creator (writing my own code to extend it). The player is based on the XR Rig from Unity's XR Toolkit, with the MainCamera attached to it. So far most hurdles have been manageable. Right now, I'm stuck on scene switching. After using the AC Switch Scene action, the XR player can't interact with any of the UI canvases. Everything works fine until then with the same menus. I don't have this problem switching scenes with a non-AC project.

Has anyone else run into this issue, or used XR Toolkit with Adventure Creator? The solution's probably going to be to write a custom Switch Scene action-- but I'm having trouble figuring out what's causing the extra layer of complexity.

Thanks!

Cidney

Comments

  • AC's scene-switching operation still relies on Unity's scene-management API. It may not be the switch itself but the connection between the UI and the Player afterwards.

    I can't offer much in the way of advice as VR isn't supported, but are you spawning in the Player prefab? If so, try placing the Player in the scene file(s) so that each scene is self-contained.

  • This will work for now-- thank you!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.