Api Sandbox ISceneLoadingEvents
interface

ISceneLoadingEvents

public interface ISceneLoadingEvents

Allows listening to events related to scene loading

Methods

virtual Void BeforeLoad(Scene scene, SceneLoadOptions options)

Called before the loading starts

virtual Task OnLoad(Scene scene, SceneLoadOptions options)

Called during loading. The game will wait for your task to finish

virtual Task OnLoad(Scene scene, SceneLoadOptions options, LoadingContext context)

Called during loading. The game will wait for your task to finish

virtual Void AfterLoad(Scene scene)

Loading has finished

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.ISceneLoadingEvents