int[][]
creating a custom Read/Write function will allow you to sync int[][]
in SyncVar/ClientRpc/etc[System.NonSerialized]
and weaver will ignore itNOTE: Types in this list can have custom writers.
UnityEngine.Component
UnityEngine.Object
UnityEngine.ScriptableObject
MyData
MyData
NetworkReaderExtensions
and NetworkWriterExtensions
.netId
of the Object is sent over the network, and the Object with the same netId
is returned on the other side. If the netId
is zero or an object is not found then null
will be returned.int[]
ArraySegment
List
[System.NonSerialized]
. If there is an unsupported type in the class or struct Weaver will fail to make Read/Write functions for it.NOTE: Weaver does not check properties
int
.Switch
will use the byte
Read/Write functions to be Serializedfloat[]
is a supported type because Mirror has a built-in Read/Write function for float
.MyData[]
is a supported type as Weaver is able to generate a Read/Write function for MyData
writer.WriteMyType(value)
.ReadMyType
and WriteMyType
so it is obvious what type they are for. However the name of the function doesn't matter, weaver should be able to find it no matter what it is called.Component
. But a custom writer can be added so that it is synced using a NetworkIdentity if one is attached.MyCollision
, but instead you could add functions for Rigidbody
and let weaver would generate a writer for MyCollision
.