Struct GhostDeserializerState
Inter-op struct used to pass arguments to the ghost component serializers (see GhostComponentSerializer).
Inherited Members
Namespace: Unity.NetCode
Syntax
public struct GhostDeserializerState
Fields
GhostMap
A map that store an entity reference for each spawned ghost.
Declaration
public NativeParallelHashMap<SpawnedGhost, Entity>.ReadOnly GhostMap
Field Value
Type | Description |
---|---|
NativeParallelHashMap.ReadOnly<> |
GhostOwner
The NetworkId of the client owning the ghost (if the ghost has an GhostOwner)
Declaration
public int GhostOwner
Field Value
Type | Description |
---|---|
Int32 |
SendToOwner
- If set to SendToOwner, the component is deserialized only if the GhostOwner equals the current client NetworkId..
- If set to SendToNonOwner, the component is deserialized only if the GhostOwner is not equals to the current client NetworkId.
Declaration
public SendToOwnerType SendToOwner
Field Value
Type | Description |
---|---|
SendToOwnerType |
SnapshotTick
The server tick we are deserializing.
Declaration
public NetworkTick SnapshotTick
Field Value
Type | Description |
---|---|
NetworkTick |