Skip to content

Latest commit

 

History

History
72 lines (64 loc) · 4.77 KB

File metadata and controls

72 lines (64 loc) · 4.77 KB

ISceneManager

interface in AdvancedSceneManager.DependencyInjection

Description

Properties

Member Description
Scene activeScene _No documentation available._
SceneOperation currentOperation _No documentation available._
Scene dontDestroyOnLoad _No documentation available._
bool isBusy _No documentation available._
IEnumerable<SceneCollection> openAdditiveCollections _No documentation available._
SceneCollection openCollection _No documentation available._
IEnumerable<Scene> openScenes _No documentation available._
IEnumerable<Scene> preloadedScenes _No documentation available._
IEnumerable<SceneOperation> queuedOperations _No documentation available._
IEnumerable<SceneOperation> runningOperations _No documentation available._

Events

Member Description
event Action<SceneCollection> collectionClosed Occurs when a collection is closed.
event Action<SceneCollection> collectionOpened Occurs when a collection is opened.
event Action<Scene> sceneClosed Occurs when a scene is closed.
event Action<Scene> sceneOpened Occurs when a scene is opened.
event Action<Scene> scenePreloaded Occurs when a scene is preloaded.
event Action<Scene> scenePreloadFinished Occurs when a previously preloaded scene is opened.
event Action startedWorking Occurs when ASM has started working and is running scene operations.
event Action stoppedWorking Occurs when ASM has finished working and no scene operations are running.

Methods

Member Description
void Activate(Scene scene) Activates this scene.
void AddSceneLoader<T>() Adds a scene loader.
SceneOperation CancelPreload() Cancels the preload. All preloaded scenes will be fully loaded (limitation by Unity), then closed. No ASM scene callbacks will be called.
SceneOperation Close(IEnumerable<Scene> scenes) Closes collection.
SceneOperation Close(Scene[] scenes) Closes collection.
SceneOperation Close(Scene scene) Closes collection.
SceneOperation Close(SceneCollection collection) Closes collection.
SceneOperation CloseAll(bool exceptLoadingScreens, bool exceptUnimported, Scene[] except) Closes all scenes and collections.
SceneOperation FinishPreload() _No documentation available._
SceneLoader GetLoaderForScene(Scene scene, bool useOnlyGlobal) Gets the loader for scene.
SceneState GetState(Scene scene) _No documentation available._
IEnumerable<SceneLoader> GetToggleableSceneLoaders() Gets a list of all added scene loaders that can be toggled scene by scene.
bool IsTracked(Scene scene) Gets whatever this scene is tracked as open.
bool IsTracked(SceneCollection collection) Gets whatever this scene is tracked as open.
SceneOperation Open(IEnumerable<Scene> scenes) Opens the collection.
SceneOperation Open(Scene[] scenes) Opens the collection.
SceneOperation Open(Scene scene) Opens the collection.
SceneOperation Open(SceneCollection collection, bool openAll) Opens the collection.
SceneOperation OpenAdditive(IEnumerable<SceneCollection> collections, SceneCollection activeCollection, LoadingScreenReference loadingScreen) Opens the collection without closing existing scenes.
SceneOperation OpenAdditive(SceneCollection collection, bool openAll) Opens the collection without closing existing scenes.
SceneOperation OpenAndActivate(Scene scene) Opens this scene and activates it.
SceneOperation OpenWithLoadingScreen(IEnumerable<Scene> scene, Scene loadingScreen) Opens this scene with the specified loadingScene.
SceneOperation OpenWithLoadingScreen(Scene scene, Scene loadingScreen) Opens this scene with the specified loadingScene.
SceneOperation Preload(Scene scene, Action onPreloaded) Preloads the scenes.
void RemoveSceneLoader<T>() _No documentation available._
SceneOperation ToggleOpen(Scene scene) Toggles the collection open or closed.
SceneOperation ToggleOpen(SceneCollection collection, bool openAll) Toggles the collection open or closed.
void Track(Scene scene) Tracks the specified scene as open.
void Track(Scene scene, Scene unityScene) Tracks the specified scene as open.
void Track(SceneCollection collection, bool isAdditive) Tracks the specified scene as open.
bool Untrack(Scene scene) Untracks the specified scene as open.
void Untrack(SceneCollection collection, bool isAdditive) Untracks the specified scene as open.
void UntrackCollections() Untracks all collections.
void UntrackScenes() Untracks all open scenes.