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

  1. public SceneLoadingTask(string sceneName, LoadOperation loadOperation,
    LoadSceneMode loadMode,
    Action<Scene> onTaskCompleted)
    • 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.

  2. public SceneLoadingTask(Scene scene,LoadOperation loadOperation,
    Action<Scene> onTaskCompleted)
    • 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