public readonly record struct NetworkIdThe component that makes an entity one the network knows about.
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 server allocates these and clients never invent one. A client that could name a new entity could name one the server did not create, which is the shape of half the cheating in a multiplayer game and all of the desyncs.
It is not an Entity. An entity handle is an index and a generation into one world's arrays, and two machines' worlds have no reason to agree about either — the same tank is entity 41 here and entity 900 there. The NetworkId is what they agree on, and each side keeps its own map from it to its own handle.
Fields and properties (5)
public uint ValueThe number the server gave it. Zero is None.
public static NetworkId NoneNot a networked entity.
public const uint FirstBakedWhere the band of ids that are computed rather than handed out begins.
public bool IsValidWhether this names a networked entity at all.
public bool IsBakedWhether this id was derived from a scene rather than handed out by a server.
Methods (2)
public NetworkId(uint Value)The component that makes an entity one the network knows about.
public override string ToString()Returns the fully qualified type name of this instance.
Used by (77, showing 40)
- ArenaMultiplayer
- AvatarControllerMultiplayer
- FighterMultiplayer
- GameClientMultiplayer
- SliceResolverNetworkSoak
- AllNetworkedSourceVixen.Net
- BandwidthLedgerVixen.Net
- BaselineKeyVixen.Net
- BitExactnessTestsVixen.Net.Tests
- ClientPredictionVixen.Net
- ClientPredictionTestsVixen.Net.Tests
- ConnectionBaselineVixen.Net
- CounterVixen.Net.Tests
- DeltaTestsVixen.Net.Tests
- DiagnosticsTestsVixen.Net.Tests
- DisconnectActionVixen.Net
- DistanceReplicationRateVixen.Net
- ExplicitInterestRuleVixen.Net
- FixedObserversVixen.Net.Tests
- FrameVixen.Net
- GeneratedTurretVixen.Net.Generators.Tests
- GeneratorHarnessVixen.Net.Generators.Tests
- IReplicationRateVixen.Net
- IRpcObjectVixen.Net
- IRpcObserversVixen.Net
- InterestGridVixen.Net
- InterestTestsVixen.Net.Tests
- MachineVixen.Net.Physics.Tests
- NetworkAnimatorApplySystemVixen.Net.Animation
- NetworkAnimatorCaptureSystemVixen.Net.Animation
- NetworkAnimatorTestsVixen.Net.Animation.Tests
- NetworkAudioApplySystemVixen.Net.Audio
- NetworkAudioCaptureSystemVixen.Net.Audio
- NetworkAudioTestsVixen.Net.Audio.Tests
- NetworkBehaviourVixen.Net.Engine
- NetworkBonesApplySystemVixen.Net.Animation
- NetworkBonesCaptureSystemVixen.Net.Animation
- NetworkBonesTestsVixen.Net.Animation.Tests
- NetworkIdAllocatorVixen.Net
- NetworkOwnershipVixen.Net