OnDestroy() is not being callen for Photon instantiated Objects
Options
Ok so, I have a GameObject, that was instantiated per script (PhotonNetwork.instantiate). When the player leaves, and the GameObject is automatically destroyed, the OnDestroy() function is not called.
Does anyone know why? Is it because it gets destroyed automatically by Photon? I'm really confused
0
Answers
-
It should be called by Unity. PUN is not interfering with it.
0