[SyncVar] int[,] alternative?

Essentially at the start of the game the server is supposed to create a 2D map array and I want all subsequent players to receive this array when they join the game.

I tried to make a 2d array with the [SyncVar] modifier(name?), and it is saying I should use a SyncList instead.
Error message

UNetWeaver error: SyncVar [System.Int32[,] ManageMaze::maze] cannot be an array. Use a SyncList instead.
UnityEngine.Debug:LogError(Object)

So I suppose my question is do [SyncVar]/SyncList variables constantly get updated?
Because I only need this to update once, if that is how [SyncVar]/SyncList variables behave, what should I do with my array to not be constantly updating something that will never change after initialization?

If you only need to set initial values you can send the data once via RPC.

1 Like

The unity scripting reference says that it’s deprecated, what can I use in the new networking system?

It’s called a client RPC in the new system

http://docs.unity3d.com/Manual/UNetActions.html.