docs.unity.cn
    Show / Hide Table of Contents

    Enum GhostCollectionPrefab.LoadingState

    Ghost prefabs can be added dynamically to the ghost collection as soon as they are loaded from either a sub-scene, or created dynamically at runtime. This enum is used on the clients, to signal the ghost collection system that the GhostCollectionPrefab type is being loaded into the world

    Namespace: Unity.NetCode
    Syntax
    public enum LoadingState

    Fields

    Name Description Value
    NotLoading

    The default state. Prefab not loaded or present (i.e. the GhostPrefab reference is Null).


    0
    LoadingActive

    Denotes that the client has started loading the Entity Prefab (i.e the client is streaming the sub-scene content). The GhostCollectionSystem will start monitoring the state of the resource (see GhostPrefab).


    1
    LoadingNotActive

    The prefab is currently being loaded, but either a) the prefab entity does not exist or b) the prefab has been not processed yet. This state should only be set via the GhostCollectionSystem, and only when the Loading state is currently set to LoadingActive.


    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023