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

SyncListInt.Callback for OP_Set Does Not Have Access to New Value

$
0
0
I have a SyncListInt and when I set a value (not add/remove, but set) the callback is successfully called before the value change (I believe Unity has stated this is intended to give flexibility and access to old values. See issue 706433). However, the only information the SyncListInt callback provides is:
op=OP_Set
int index=whatever the index is
int[ ] array of old values

I have no way to access the new value that is being set during the SyncListInt.Callback. Am I missing something?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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