|
Dear All, What can be the reason of OnNetworkInstantiate not to call? I am instantiating on network gameobjects via Network.Instantiate, gameobjects appear but OnNetworkInstantiate method does not call. So its very difficult me to control created objects: to rename them accordingly before game begins. Please, help.
(comments are locked)
|

is the OnNetworkInstantiate function on the same object you have instantiated? otherwise it wont be called!
I had everything in one cs file. I moved OnNetworkInstantiate to loaded gameobject and its called now.
Thank you.
I have got one .CS file:
'OnNetworkInstantiate' gets called on the object being instantiated.