Skip to main content
New Participant
May 15, 2024

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

New Participant
May 31, 2024

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