InstantiateSceneObject can all players

Options

Hi, i know that it's InstantiateSceneObject  only for the master, but there is an assumption that it could be used by everyone? I am creating a game like minecraft and people are building there, but the problem is that if you use PhotonNetwork.Instantiate then after the player exits, his buildings are deleted. Help please I will be glad for any help

Answers

  • Tobias
    Options

    A game like minecraft is really special. It would be hard to scale this well with simple default solutions.

    InstantiateSceneObject does not work for all players by design. In theory it's possible to allow that but it won't work for long.

    I would recommend having a look at Fusion, as you seem to be not too far into the project anyways. It should allow everyone to create objects that stay in the room/session until the last player leaves and it also handles the instantiation messages better than PUN, so it's less of a worry.