Property m_TargetIdBeingSynchronized
m_TargetIdBeingSynchronized
The relative client identifier targeted for the serialization of this NetworkBehaviour instance.
Declaration
protected ulong m_TargetIdBeingSynchronized { get; }
Property Value
Type | Description |
---|---|
ulong |
Remarks
This value will be set prior to OnSynchronize<T>(ref BufferSerializer<T>) being invoked. For writing (server-side), this is useful to know which client will receive the serialized data. For reading (client-side), this will be the LocalClientId. When synchronization of this instance is complete, this value will be reset to 0