Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
RenogadeSALT's avatar
RenogadeSALT
Honored Guest
1 year ago

Issues with colocation while chaning scenes.

I have two scenes in my Unity game. The players connect p2p with netcode in the first scene and when the button is pressed the following code is executed to change scenes. After which the colocation building block from the meta sdk fires in the new scene, but instead of the spatial anchor prefab spawning where it normally does on the ground, it instead spawns at the location of the host's headset.

public void loadScene()
{
NetworkManager.Singleton.SceneManager.LoadScene("MRGameScene", LoadSceneMode.Single);
}

No RepliesBe the first to reply