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

SyncList.SyncListChanged API change in 5.2p1?

$
0
0
The delegate argument itemIndex now seems to be itemCount, but this is undocumented in 5.2p1. Is this an error?

In the docs that come with 5.2p1 and earlier versions for SyncList<T0>.SyncListChanged there is:
Code (CSharp):
  1. public delegate void SyncListChanged(Operation<T> op, int itemIndex);
However, the index + 1 is now passed instead of the itemIndex:
Code (CSharp):
  1. // UnityEngine.Networking.SyncList<T>
  2. public void Add(T item)
  3. {
  4.     this.m_Objects.Add(item);...
SyncList<T0>.SyncListChanged API change in 5.2p1?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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