docs.unity3d.com
    Show / Hide Table of Contents

    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
    Invocation: Server Side
    Message Flow: Server to client
    Event Notification: Both server and client are notified a load scene event started


    0
    Unload

    Unload a scene
    Invocation: Server Side
    Message Flow: Server to client
    Event Notification: Both server and client are notified an unload scene event started.


    1
    Synchronize

    Synchronizes current game session state for newly approved clients
    Invocation: Server Side
    Message Flow: Server to client
    Event Notification: Server and Client receives a local notification (server receives the ClientId being synchronized).


    2
    ReSynchronize

    Game session re-synchronization of NetworkObjects that were destroyed during a Synchronize event
    Invocation: Server Side
    Message Flow: Server to client
    Event Notification: Both server and client receive a local notification


    3
    LoadEventCompleted

    All clients have finished loading a scene
    Invocation: Server Side
    Message Flow: Server to Client
    Event Notification: Both server and client receive a local notification containing the clients that finished as well as the clients that timed out(if any).


    4
    UnloadEventCompleted

    All clients have unloaded a scene
    Invocation: Server Side
    Message Flow: Server to Client
    Event Notification: Both server and client receive a local notification containing the clients that finished as well as the clients that timed out(if any).


    5
    LoadComplete

    A client has finished loading a scene
    Invocation: Client Side
    Message Flow: Client to Server
    Event Notification: Both server and client receive a local notification.


    6
    UnloadComplete

    A client has finished unloading a scene
    Invocation: Client Side
    Message Flow: Client to Server
    Event Notification: Both server and client receive a local notification.


    7
    SynchronizeComplete

    A client has finished synchronizing from a Synchronize event
    Invocation: Client Side
    Message Flow: Client to Server
    Event Notification: Both server and client receive a local notification.


    8
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023