OnPhotonInstantiate is not called on SceneObject
Options
Hi. Why OnPhotonInstantiate() is not called on object created by PhotonNetwork.InstantiateSceneObject()?
0
Comments
-
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.0 -
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.0