docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostReceiveSystem

    Inheritance
    Object
    GhostReceiveSystem
    Namespace: Unity.NetCode
    Syntax
    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()

    OnDestroy()

    Declaration
    protected override void OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Back to top
    Terms of use
    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