#GameObject variable sync only syncs on the server and not on the client
13 messages · Page 1 of 1 (latest)
If I'm a server my SyncVar GameObject hook works fine, but if I'm a client only the proprietary client works. Hook SyncMelee doesn't work properly, I want to instantiate a knife in my player's hand
Player Script
Item Script
Server View
Client View
Client error message
Hmm... you're running as host, is this right?
Also, can you send the whole error message? There you can see where is your Null reference error is being raised.
Also, sorry for this, but that's completely wrong. Mirror does support GameObjects on SyncVars, but it just needs to have a NetworkIdentity component inside.
Yes
My GameObject has a NetworkIdentity