OnPhotonInstantiate is not called on SceneObject

Options
Hi. Why OnPhotonInstantiate() is not called on object created by PhotonNetwork.InstantiateSceneObject()?

Comments

  • LastChaos
    Options
    And how to send updated information about the object to new connected players? RPC to AllBuffered is not a solution, because the information about the object is constantly updated, and the buffer will constantly accumulate.

    OnPhotonSerializeView is also not there, because it is updated randomly and not so often.
  • Tobias
    Options
    Any script that implements IPunInstantiateMagicCallback gets the callback OnPhotonInstantiate(). Do you implement that?

    You should use OnPhotonSerializeView() to update new players. Instead of triggering a RPC when someone joins, set a flag that all PhotonViews have to send a full update.
  • LastChaos
    Options
    Tobias said:

    Instead of triggering a RPC when someone joins, set a flag that all PhotonViews have to send a full update.

    Where to set this flag? In the settings I can't find it.