Class ScyllaSceneLoadedEvent
Published by ScyllaSceneManager after a managed scene load has completed and the scene is activated. This is the terminal success event for a load: no further ScyllaSceneLoadProgressEvent events follow it for the same operation.
Inherited Members
Namespace: Scylla.Core.Scenes
Assembly: ScyllaCore.dll
Syntax
public sealed class ScyllaSceneLoadedEvent : ScyllaEvent
Remarks
Publishing order for a single-mode load: any ScyllaSceneUnloadedEvent for the scenes the load replaced fire immediately before this event, and if the active scene changed a trailing ScyllaActiveSceneChangedEvent fires immediately after it. For an additive load, no unloaded events precede it and the active-scene-changed event only follows when the load requested active-scene assignment. This event, the unloaded events, and the active-scene-changed event are all published before the manager's registered post-load tasks run and before the operation is reported complete on its SceneLoadOperation handle.
The Scene handle is valid at publish time, so subscribers can query root objects or scene properties directly. Post-load spawn logic that must run sequentially before gameplay resumes should prefer a registered post-load task on ScyllaSceneManager over this event, since post-load tasks are awaited in order while event handlers all run synchronously within the publish call.
Like every ScyllaEvent, a handler can call StopPropagation() to keep lower-priority subscribers of this same event from receiving it. ScyllaSceneManager never reads IsCancelled after publishing it; the load has already completed by the time this event fires, so there is nothing left to cancel.
Constructors
ScyllaSceneLoadedEvent(Scene, LoadSceneMode, float)
Initializes a new ScyllaSceneLoadedEvent.
Declaration
public ScyllaSceneLoadedEvent(Scene scene, LoadSceneMode mode, float durationSeconds)
Parameters
| Type | Name | Description |
|---|---|---|
| Scene | scene | The handle of the loaded scene. |
| LoadSceneMode | mode | The Unity load mode the operation used. |
| float | durationSeconds | The total operation duration in seconds. |
Properties
DurationSeconds
Gets the total operation duration in seconds, including any minimum-duration hold.
Declaration
public float DurationSeconds { get; }
Property Value
| Type | Description |
|---|---|
| float | The elapsed realtime between the operation starting and this event being published,
measured with |
Mode
Gets the Unity load mode the operation used.
Declaration
public LoadSceneMode Mode { get; }
Property Value
| Type | Description |
|---|---|
| LoadSceneMode | UnityEngine.SceneManagement.LoadSceneMode.Single if this load replaced every previously loaded scene, or UnityEngine.SceneManagement.LoadSceneMode.Additive if it was loaded alongside the scenes already open. |
Scene
Gets the handle of the scene that was loaded and activated.
Declaration
public Scene Scene { get; }
Property Value
| Type | Description |
|---|---|
| Scene | A valid UnityEngine.SceneManagement.Scene handle; safe to query for root objects and scene properties. |