After upgrading to 5.2.1f, I got some problems with Syncvar-Arrays of primitive types (like int, string, …).
Worked flawlessly in unity 5.1 though.
The code is basically:
using UnityEngine;
using HeikoGames.WeaponSystem.FireArms;
using UnityEngine.Networking;
namespace HeikoGames.ItemSystem
{
public class EquipMgr : MyNetworBehaviour
{
…
[SyncVar] public int[] testArray;
[SyncVar] public string[] activeItemData;
…
}
}
I got the following Error-Message:
Sure I can try a Synclist, but that would be an extra hassle, and my last option.
Is it not possible to sync Arrays as Syncvar anymore, or is it some kind of bug ??