Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

[SyncVar] Struct Not Synchronizing from Host to Client

$
0
0
I have a GameObject with attached NetworkIdentity and NetworkBehavior Script (C#)

I run two instances of the game with a host & client using the built in NetworkManager + NetworkManagerHUD. When the client connects it properly receives the most recent values from the host. However, after the client is connected when I press the key to increment the structure fields they only update on the host, not on the client.

Does anybody know why the [SyncVar] struct is not updating on the client...

[SyncVar] Struct Not Synchronizing from Host to Client

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>