# 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. ```csharp
   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. ```csharp
   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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://reflective-roommanager.gitbook.io/docs/user-manual/scene-management/task/scene-loading-task.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
