docs.unity3d.com
    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
    • 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