mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comment
This commit is contained in:
parent
d5f7c4bc01
commit
5e1f17373a
@ -169,6 +169,10 @@ public void SetSyncVarDirtyBit(ulong dirtyBit)
|
||||
// simply reuse SetSyncVarDirtyBit for now.
|
||||
// instead of adding another field.
|
||||
// syncVarDirtyBits does trigger OnSerialize as well.
|
||||
//
|
||||
// it's important to set _all_ bits as dirty.
|
||||
// for example, server needs to broadcast ClientToServer components.
|
||||
// if we only set the first bit, only that SyncVar would be broadcast.
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void SetDirty() => SetSyncVarDirtyBit(ulong.MaxValue);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user