Class GhostReceiveSystem
Inherited Members
Unity.Entities.SystemBase.OnCreateForCompiler()
Unity.Entities.ComponentSystemBase.GetArchetypeChunkComponentType<T>(System.Boolean)
Unity.Entities.ComponentSystemBase.GetArchetypeChunkComponentTypeDynamic(Unity.Entities.ComponentType)
Unity.Entities.ComponentSystemBase.GetArchetypeChunkBufferType<T>(System.Boolean)
Unity.Entities.ComponentSystemBase.GetArchetypeChunkSharedComponentType<T>()
Unity.Entities.ComponentSystemBase.GetArchetypeChunkEntityType()
Namespace: Unity.NetCode
Syntax
public class GhostReceiveSystem : SystemBase
Fields
LastGhostMapWriter
Declaration
public JobHandle LastGhostMapWriter
Field Value
Type | Description |
---|---|
JobHandle |
Properties
GhostCountOnClient
The total number of ghosts received by this client the last time a snapshot was received. The number of received ghosts can be different from the number of currently spawned ghosts. Use this and GhostCountOnServer to figure out how much of the state the client has received.
Declaration
public int GhostCountOnClient { get; }
Property Value
Type | Description |
---|---|
Int32 |
GhostCountOnServer
The total number of ghosts on the server the last time a snapshot was received. Use this and GhostCountOnClient to figure out how much of the state the client has received.
Declaration
public int GhostCountOnServer { get; }
Property Value
Type | Description |
---|---|
Int32 |
SpawnedGhostEntityMap
Declaration
public NativeHashMap<SpawnedGhost, Entity> SpawnedGhostEntityMap { get; }
Property Value
Type | Description |
---|---|
NativeHashMap<SpawnedGhost, Entity> |
Methods
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()