Struct GhostPrefabMetaData | Unity NetCode | 0.6.0-preview.7
docs.unity.cn
    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 Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Saturday, January 23, 2021