mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Add more explanation
This commit is contained in:
parent
7b59698f6e
commit
61e03e125f
@ -495,6 +495,7 @@ internal bool OnSerializeAllSafely(NetworkBehaviour[] components, NetworkWriter
|
||||
// if it is initializing, channel does not matter, they all go to reliable channel
|
||||
// otherwise, only send the component if we are looking at the right channel.
|
||||
// note that if we are spawning, we expect all varibles to be dirty
|
||||
// except for the owner bits if we are talking about observers
|
||||
if (comp.IsDirty() && (comp.GetNetworkChannel() == channelId || initialState))
|
||||
{
|
||||
// set bit #i to 1 in dirty mask
|
||||
|
Loading…
Reference in New Issue
Block a user