#How should I use SyncList to sync a list on both client and server

1 messages · Page 1 of 1 (latest)

subtle fossil
#

Hello, I met a problem when using SyncList. I have a SyncList<group> groupList and every group has a guid. I called groupList.Add(A) in a command function and found the guid of group received by the callback is different from A.

var newGroup = new ActivityGroup();
newGroup.GUID = System.Guid.NewGuid().ToString();
groupList.Add(newGroup);

I tried to output the guid in callback function and found it's null

frosty oar
#

have in mind you need to add stuff on server not client.