Class GhostReceiveSystem
Inherited Members
Unity.Entities.SystemBase.GetBuffer<T>(Unity.Entities.Entity)
Unity.Entities.SystemBase.GetBufferFromEntity<T>(System.Boolean)
Unity.Entities.SystemBase.OnCreateForCompiler()
Unity.Entities.ComponentSystemBase.GetComponentTypeHandle<T>(System.Boolean)
Unity.Entities.ComponentSystemBase.GetDynamicComponentTypeHandle(Unity.Entities.ComponentType)
Unity.Entities.ComponentSystemBase.GetBufferTypeHandle<T>(System.Boolean)
Unity.Entities.ComponentSystemBase.GetSharedComponentTypeHandle<T>()
Unity.Entities.ComponentSystemBase.GetEntityTypeHandle()
Unity.Entities.ComponentSystemBase.ExecutingSystemType
Namespace: Unity.NetCode
Syntax
[UpdateInWorld(UpdateInWorld.TargetWorld.Client)]
public class GhostReceiveSystem : SystemBase, IGhostMappingSystem
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 |
LastGhostMapWriter
Declaration
public JobHandle LastGhostMapWriter { get; set; }
Property Value
Type | Description |
---|---|
JobHandle |
Implements
SpawnedGhostEntityMap
Declaration
public NativeHashMap<SpawnedGhost, Entity> SpawnedGhostEntityMap { get; }
Property Value
Type | Description |
---|---|
NativeHashMap<SpawnedGhost, Entity> |
Implements
Methods
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()