csharp
public struct SyncStateVersionMarks an entity as having behaviour-held networked state, and is what the change versions watch.
No guide page documents this yet — the page shows what the code says about itself.
As a component
- Size
- 4 bytes — 1024 rows in a 16 KB chunk, alone on the archetype
Remarks
The join between a SyncVar`1 and the ECS's per-chunk change versions, which is the thing that makes replication cost nothing for an object that did not change. A behaviour's state lives in managed fields the ECS cannot see, so setting one has to touch something in a chunk for the capture to notice — and this is that something.
A counter rather than a flag, because a flag would have to be cleared and clearing it is another write. Nothing reads the number; the write is the whole point.
Fields and properties (1)
public uint ValueCounts up whenever any of this entity's behaviour state changed.
Used by (3)
- NetworkBehaviourVixen.Net.Engine
- SyncStateReplicatorVixen.Net.Engine
- SyncStateTestsVixen.Net.Engine.Tests