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