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
public bool GetLoadingState()
Returns the loading status.
public abstract IEnumerator Process()
It is an abstract method. Derived classes must implement this method. Starts the transaction process.
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.
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.
protected static AsyncOperation StartAsyncSceneLoad(SceneLoadingTask task)
Parameters:
task
: ASceneLoadingTas
k 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.
protected static AsyncOperation StartAsyncSceneUnLoad(SceneLoadingTask task)
Parameters:
task
: ASceneLoadingTask
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