OnPhotonInstantiate(PhotonMessageInfo info) - info.photonView returning as null!?
Options
I'm unable to find any help on this. All the topics I've found seem to dodge the answer.
So I have PhotonNetwork.Instantiate() in a script spawning a new game object in the scene.
In the new game object, I have another script. Inside that script contains OnPhotonInstantiate(PhotonMessageInfo info).
Logging info.photonView returns null, and trying to use it gives me a NullException error; though the documentation says it should return the same photonView that instantiated the object. Has anyone else got it to work? Am I doing something wrong?
So I have PhotonNetwork.Instantiate() in a script spawning a new game object in the scene.
In the new game object, I have another script. Inside that script contains OnPhotonInstantiate(PhotonMessageInfo info).
Logging info.photonView returns null, and trying to use it gives me a NullException error; though the documentation says it should return the same photonView that instantiated the object. Has anyone else got it to work? Am I doing something wrong?
0