Question by
sanatan · Jun 05, 2017 at 05:20 PM ·
networkingnetworknullreferenceexception
Cant reference Network.Identity connectionInfo
Why does this not work?
this.gameObject.name = gameObject.GetComponent ().connectionToClient.connectionId.ToString();
I get an error NullReferenceException: Object reference not set to an instance of an object
but somehow I can get it through a collision event just fine
void OnCollisionEnter(Collision Other){
Other.gameObject.GetComponent ().connectionToClient.connectionId }
What the heck?.
Comment
Your answer

Follow this Question
Related Questions
Need some help with networking, Object reference not set to an instance of an object. 0 Answers
UNET Command not working 0 Answers
How to get OnTriggerEnter working over a network 2 Answers
Reference lost in NetworkEntity 0 Answers
Bullets not spawning in other clients but its spawning on the client that shot it. 1 Answer