Question by
pKallv · Mar 06, 2016 at 07:55 PM ·
c#multiplayerunity5multiplayer-networking
Unet: Is the position in a GameObject Inspector hierarchy important
When i add an empty scrip to a GameObject Inspector hierarchy it is located in the bottom and generates an error:
"NetworkIdentity myNetID = childGameObject.GetComponent (); not initialized" (not the error message).
When i move the script up in the inspector hierarchy, above the Networkidentity and Networktransform it works.
Can someone explain why this is the case or if this is some type of error?
Comment
Your answer
Follow this Question
Related Questions
Match making in Photon 0 Answers
Unity UNET - Client unable to move 0 Answers
How to find local player gameobject? c# 3 Answers
HLAPI simple 2 player game 1 Answer
Can players host a server individually on your game for free 0 Answers