docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum GhostPrefabType

    Assign to every GhostInstance, and denotes which Ghost prefab version this component is allowed to exist on. Use this to disable rendering components on the Server version of the Ghost. If you cannot change the ComponentType, use the GhostAuthoringInspectionComponent to manually override on a specific Ghost prefab.

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    [Flags]
    public enum GhostPrefabType

    Fields

    Name Description
    All

    Component will be to all versions.

    AllPredicted

    Component will only be added to the Server and PredictedClient versions.

    Client

    Component will only be added to Client versions.

    InterpolatedClient

    Component will only be added to the Interpolated Client version.

    None

    Component will not be added to any Ghost prefab type.

    PredictedClient

    Component will only be added to the Predicted Client version.

    Server

    Component will only be added to the Server version.

    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)