Skip to content

SceneRefSO

Namespace: SideXP.SceneRefs | Inherits from: ScriptableObject

public class SceneRefSO : ScriptableObject

Represents a scene in the project at runtime.

Properties

ScenePath

public string ScenePath

The path to the scene asset.

Scene

public Scene Scene

Gets the represented scene value.

Remarks

This value is valid only if the scene is loaded.

SceneName

public string SceneName

Gets the name of the represented scene.

SceneIndex

public int SceneIndex

Gets the index of the represented scene.

Remarks

This value is valid only if the scene is loaded.

IsActive

public bool IsActive

Checks if the represented scene is the active one.

IsLoaded

public bool IsLoaded

Checks if this scene is loaded and valid.

Methods

Load()

public void Load()

Inherited documentation.

Load(LoadSceneMode)

public void Load(LoadSceneMode mode)

Inherited documentation.

Load(LoadSceneParameters)

public Scene Load(LoadSceneParameters parameters)

Inherited documentation.

LoadAsync()

public AsyncOperation LoadAsync()

Inherited documentation.

LoadAsync(LoadSceneMode)

public AsyncOperation LoadAsync(LoadSceneMode mode)

Inherited documentation.

LoadAsync(LoadSceneParameters)

public AsyncOperation LoadAsync(LoadSceneParameters parameters)

Inherited documentation.

UnloadAsync()

public AsyncOperation UnloadAsync()

Inherited documentation.

UnloadAsync(UnloadSceneOptions)

public AsyncOperation UnloadAsync(UnloadSceneOptions options)

Inherited documentation.