Everything is destroyed when master-client exits from a room

Options
Hello, I want to create a random world and I use this example code
void Start () {
if (PhotonNetwork.isMasterClient) {
OnCreateWorld();
}
}
public void OnCreateWorld () {
PhotonNetwork.Instantiate (element.name, Vector3.zero, Quaternion.identity, 0);
}
Everything works fine but when the master-client exits from the room, the world is destroyed. How can I maintain the world when the master client exit with other players in the room?

Best Answer

  • dtmp6uvec5ppa
    edited July 2018 Answer ✓
    Options
    No worry, I solved it using PhotonNetwork.InstantiateSceneObject()

Answers

  • dtmp6uvec5ppa
    edited July 2018 Answer ✓
    Options
    No worry, I solved it using PhotonNetwork.InstantiateSceneObject()