docs.unity.cn
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.NetCode
    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.ReadOnly<>

    GhostOwner

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

    Declaration
    public int GhostOwner
    Field Value
    Type Description
    Int32

    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
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023