Scene Processor

This abstract class provides a basic structure that manages scene rendering operations. SceneProcessor implements the ISceneProcessable interface.

Members

  • protected SceneLoadingState m_loadingState { get; }:

    • An m_loadingState object that represents the loading state.

  • protected LoadSceneMode m_loadSceneMode:

    • An m_loadSceneMode variable representing the loading mode.

Methods

  1. public bool GetLoadingState()
    • Returns the loading status.

  2. public abstract IEnumerator Process()
    • It is an abstract method. Derived classes must implement this method. Starts the transaction process.

  3. public virtual void LoadScene(string sceneName,
    Action<Scene> onCompleted = null)
    • Parameters:

      • sceneName: Name of the scene to load.

      • onCompleted: The action that will be called when the installation process is completed (defaults to null).

    • Calls the SceneLoader.LoadScene() method to load the scene.

  4. public virtual void UnLoadScene(Scene scene,
    Action<Scene> onCompleted = null)
    • Parameters:

      • scene: The scene to be evacuated.

      • onCompleted: The action that will be called when the dump is complete (defaults to null).

    • Calls the SceneLoader.UnloadScene() method to unload the scene.

  5. protected static AsyncOperation StartAsyncSceneLoad(SceneLoadingTask task)
    • Parameters:

      • task: A SceneLoadingTask object that represents the task of the loading operation.

    • It is a helper method that starts the installation process.

    • It starts the process with the SceneManager.LoadSceneAsync() method.

  6. protected static AsyncOperation StartAsyncSceneUnLoad(SceneLoadingTask task)
    • Parameters:

      • task: A SceneLoadingTask object that represents the task of the offloading operation.

    • It is a helper method that starts the unloading process.

    • It starts the process with the SceneManager.UnloadSceneAsync() method.

This abstract class provides a basic structure that manages scene rendering operations.

Last updated