OnPhotonInstantiate(PhotonMessage info) not working
Options
When I call OnPhotonInstantiate, it works. However when i try to do "info.photonView", it always comes up as "null".
Please help
Please help
1
Best Answer
-
Wait nevermind, I just realized that the info.photonview is the photonview from the gameobject that instantiated it. For some reason I thought that the info.photonview was from the gameobject that got instantiated.
5
Answers
-
Wait nevermind, I just realized that the info.photonview is the photonview from the gameobject that instantiated it. For some reason I thought that the info.photonview was from the gameobject that got instantiated.
5 -
This doesn't answer why it is returning null. In my case, I would like to get the specific gameObject to store as a reference in the newly instantiated object, but it is saying "info.photonView" is null. Any help would be greatly appreciated.0