Enum SceneEventType
The different types of scene events communicated between a server and client.
Used by NetworkSceneManager for Unity.Netcode.SceneEventMessage messages.
Note: This is only when EnableSceneManagement is enabled.
See also:
SceneEvent
Namespace: Unity.Netcode
Syntax
public enum SceneEventType : byte
Fields
Name | Description | Value |
---|---|---|
Load | Load a scene |
0 |
Unload | Unload a scene |
1 |
Synchronize | Synchronizes current game session state for newly approved clients |
2 |
ReSynchronize | Game session re-synchronization of NetworkObjects that were destroyed during a Synchronize event |
3 |
LoadEventCompleted | All clients have finished loading a scene |
4 |
UnloadEventCompleted | All clients have unloaded a scene |
5 |
LoadComplete | A client has finished loading a scene |
6 |
UnloadComplete | A client has finished unloading a scene |
7 |
SynchronizeComplete | A client has finished synchronizing from a Synchronize event |
8 |
ActiveSceneChanged | Synchronizes clients when the active scene has changed See: ActiveSceneSynchronization |
9 |
ObjectSceneChanged | Synchronizes clients when one or more NetworkObjects are migrated into a new scene See: SceneMigrationSynchronization |
10 |