docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct GhostDeserializerState

    Inter-op struct used to pass arguments to the ghost component serializers (see GhostComponentSerializer).

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    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<SpawnedGhost, Entity>.ReadOnly

    GhostOwner

    The NetworkId of the client owning the ghost (if the ghost has an GhostOwner)

    Declaration
    public int GhostOwner
    Field Value
    Type Description
    int

    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)