Class GhostReceiveSystem | Unity NetCode | 0.5.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostReceiveSystem

    Inheritance
    Object
    ComponentSystemBase
    SystemBase
    GhostReceiveSystem
    Inherited Members
    SystemBase.CompleteDependency()
    SystemBase.Update()
    SystemBase.GetComponent<T>(Entity)
    SystemBase.SetComponent<T>(Entity, T)
    SystemBase.HasComponent<T>(Entity)
    SystemBase.GetComponentDataFromEntity<T>(Boolean)
    Unity.Entities.SystemBase.GetBuffer<T>(Unity.Entities.Entity)
    Unity.Entities.SystemBase.GetBufferFromEntity<T>(System.Boolean)
    Unity.Entities.SystemBase.OnCreateForCompiler()
    SystemBase.Dependency
    SystemBase.Entities
    SystemBase.Job
    ComponentSystemBase.OnStartRunning()
    ComponentSystemBase.OnStopRunning()
    ComponentSystemBase.ShouldRunSystem()
    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()
    ComponentSystemBase.RequireForUpdate(EntityQuery)
    ComponentSystemBase.RequireSingletonForUpdate<T>()
    ComponentSystemBase.HasSingleton<T>()
    ComponentSystemBase.GetSingleton<T>()
    ComponentSystemBase.SetSingleton<T>(T)
    ComponentSystemBase.GetSingletonEntity<T>()
    ComponentSystemBase.GetEntityQuery(ComponentType[])
    ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
    ComponentSystemBase.GetEntityQuery(EntityQueryDesc[])
    ComponentSystemBase.GetArchetypeChunkComponentType<T>(Boolean)
    ComponentSystemBase.GetArchetypeChunkComponentTypeDynamic(ComponentType)
    ComponentSystemBase.GetArchetypeChunkBufferType<T>(Boolean)
    ComponentSystemBase.GetArchetypeChunkSharedComponentType<T>()
    ComponentSystemBase.GetArchetypeChunkEntityType()
    ComponentSystemBase.Enabled
    ComponentSystemBase.EntityQueries
    ComponentSystemBase.GlobalSystemVersion
    ComponentSystemBase.LastSystemVersion
    ComponentSystemBase.EntityManager
    ComponentSystemBase.World
    ComponentSystemBase.Time
    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
    IGhostMappingSystem.LastGhostMapWriter

    SpawnedGhostEntityMap

    Declaration
    public NativeHashMap<SpawnedGhost, Entity> SpawnedGhostEntityMap { get; }
    Property Value
    Type Description
    NativeHashMap<SpawnedGhost, Entity>
    Implements
    IGhostMappingSystem.SpawnedGhostEntityMap

    Methods

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    ComponentSystemBase.OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    ComponentSystemBase.OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Overrides
    SystemBase.OnUpdate()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023