Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
neurograph's avatar
neurograph
Explorer
2 years ago

MRUK: Unable to Load a new Scene from the device when changing physical room

Hi,

I have a scene that is working in one room and I would like it to rescan the scene or load a new scene from the device if I move into a new physical room (scanned and present on the device).

I am debugging the efficiency of  MRUKRoom.IsPositionInRoom(Vector3 pos) by recoloring the EffectMesh...

But the below code does not do what it should... Any Meta ppl can help??? Please...

 

  if (!isInRoom)
                {
                    _effectMesh.MeshMaterial.color = Color.green;
                    MRUK.Instance.ClearScene();
                    MRUK.Instance.LoadSceneFromDevice();
}

 

 

 Thank you.

GL

1 Reply

  • You can use OVRScene.RequestSpaceSetup() to prompt the user to scan a new room.