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

How to use SyncListFloat?

$
0
0
EDIT: I'm just asking if there's a way to sync float lists across the network from server to client and client to server. The code provided below is a script attached to a prefab. This prefab is then spawned with client authority from NetworkServer on the server side.



There's no sample code explaining how to use it.

Is it just like using List<float>? You add, remove, check using Contains(), etc.?

And the syncing happens automatically?

Code (CSharp):
  1. using UnityEngine.Networking;...
How to use SyncListFloat?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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