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
    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
    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