Scene Loading Task
This class provides a basic structure for the tasks to be performed when loading scenes. SceneLoadingTask has two different constructors.
Members
public readonly string SceneName
:Returns the name of the scene to load.
public readonly Action<Scene> OnTaskCompletedAction
:Represents the action that will be run when the task is completed.
public readonly LoadOperation LoadOperation
:Returns the type of installation operation.
public readonly LoadSceneMode LoadMode
:Returns the loading mode of the scene.
public readonly Scene Scene
:Represents the scene to be loaded.
Constructure
Parameters:
sceneName
: The name of the scene to load.loadOperation
: Type of loading operation (LoadOperation enumeration value).loadMode
: The loading mode of the scene (LoadSceneMode enumeration value).onTaskCompleted
: The action that will be called when the task is completed.
Parameters:
scene
: Scene to load.loadOperation
: type of loading operation (Load Operation enumeration value).onTaskCompleted
: The action that will be called when the task is completed.
This class is used to dynamically load scenes and track loading processes.
Last updated