InstantiateSceneObject

hello,
i am working on a game where master client instantiates few gameobjects with photonnetwork.InstantiateSceneObject .my problem occurs when master client leaves and instantiated objects freezes for some time before and works fine afterwards . how can i stop the freeze time that occurs when master client leaves ?

Comments

  • Hi @Romin,

    currently those 'freezes' are due to the fact, that a new MasterClient is automatically selected by the server when the previous MasterClient leaves the game. This takes a few moments before the new MasterClient continues updating those objects. You can try workaround this scenario by manually transferring the ownership to another client before the MasterClient leaves the game, but I don't know if you can get fully rid of this behaviour anyway.
  • hi @Christian_Simon ,
    currently i am working this out with unity's OnApplicationPause() when done on master client i am shifting the master client .its working fine for now