docs.unity3d.com
    Show / Hide Table of Contents

    Struct GhostPrefabMetaData

    A BlobAsset containing all the meta data required for ghosts.

    Namespace: Unity.NetCode
    Syntax
    public struct GhostPrefabMetaData

    Fields

    DefaultMode

    Declaration
    public GhostPrefabMetaData.GhostMode DefaultMode
    Field Value
    Type Description
    GhostPrefabMetaData.GhostMode

    DisableOnInterpolatedClient

    A list of (child index, components) pair which should be disabled when the prefab is used to instantiate an interpolated ghost. This is used so we can have a single client prefab.

    Declaration
    public BlobArray<GhostPrefabMetaData.ComponentReference> DisableOnInterpolatedClient
    Field Value
    Type Description
    BlobArray<GhostPrefabMetaData.ComponentReference>

    DisableOnPredictedClient

    A list of (child index, components) pair which should be disabled when the prefab is used to instantiate a predicted ghost. This is used so we can have a single client prefab.

    Declaration
    public BlobArray<GhostPrefabMetaData.ComponentReference> DisableOnPredictedClient
    Field Value
    Type Description
    BlobArray<GhostPrefabMetaData.ComponentReference>

    Importance

    Declaration
    public int Importance
    Field Value
    Type Description
    Int32

    Name

    Declaration
    public BlobString Name
    Field Value
    Type Description
    BlobString

    NumServerComponentsPerEntity

    Declaration
    public BlobArray<int> NumServerComponentsPerEntity
    Field Value
    Type Description
    BlobArray<Int32>

    RemoveOnClient

    A list of (child index, components) pair which should be removed from the prefab when using it on the client. The main use-case is to support ClientAndServer data.

    Declaration
    public BlobArray<GhostPrefabMetaData.ComponentReference> RemoveOnClient
    Field Value
    Type Description
    BlobArray<GhostPrefabMetaData.ComponentReference>

    RemoveOnServer

    A list of (child index, components) pair which should be removed from the prefab when using it on the server. The main use-case is to support ClientAndServer data.

    Declaration
    public BlobArray<GhostPrefabMetaData.ComponentReference> RemoveOnServer
    Field Value
    Type Description
    BlobArray<GhostPrefabMetaData.ComponentReference>

    ServerComponentList

    Declaration
    public BlobArray<GhostPrefabMetaData.ComponentInfo> ServerComponentList
    Field Value
    Type Description
    BlobArray<GhostPrefabMetaData.ComponentInfo>

    StaticOptimization

    Declaration
    public bool StaticOptimization
    Field Value
    Type Description
    Boolean

    SupportedModes

    Declaration
    public GhostPrefabMetaData.GhostMode SupportedModes
    Field Value
    Type Description
    GhostPrefabMetaData.GhostMode
    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