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
Assembly: Unity.NetCode.dll
Syntax
public enum GhostCollectionPrefab.LoadingState
Fields
Name | Description |
---|---|
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). |
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. |
NotLoading | The default state. Prefab not loaded or present (i.e. the GhostPrefab reference is Unity.Entities.Entity.Null). |