This helper class, meant to be used by the MMAdditiveSceneLoadingManager, creates a temporary scene to store objects that might get instantiated, and empties it in the destination scene once loading is complete
More...
|
virtual void | PrepareAntiFill (string sceneToLoadName, string antiSpillSceneName="") |
| Creates the temporary scene More...
|
|
This helper class, meant to be used by the MMAdditiveSceneLoadingManager, creates a temporary scene to store objects that might get instantiated, and empties it in the destination scene once loading is complete
◆ EmptyAntiSpillScene()
virtual void MoreMountains.Tools.MMSceneLoadingAntiSpill.EmptyAntiSpillScene |
( |
| ) |
|
|
protectedvirtual |
Empties the contents of the anti spill scene into the destination scene
◆ OnActiveSceneChanged()
virtual void MoreMountains.Tools.MMSceneLoadingAntiSpill.OnActiveSceneChanged |
( |
Scene |
from, |
|
|
Scene |
to |
|
) |
| |
|
protectedvirtual |
Once the destination scene has been loaded, we catch that event and prepare to empty
- Parameters
-
◆ PrepareAntiFill()
virtual void MoreMountains.Tools.MMSceneLoadingAntiSpill.PrepareAntiFill |
( |
string |
sceneToLoadName, |
|
|
string |
antiSpillSceneName = "" |
|
) |
| |
|
virtual |
Creates the temporary scene
- Parameters
-
◆ PrepareAntiFillOnSceneLoaded()
virtual void MoreMountains.Tools.MMSceneLoadingAntiSpill.PrepareAntiFillOnSceneLoaded |
( |
Scene |
newScene, |
|
|
LoadSceneMode |
mode |
|
) |
| |
|
protectedvirtual |
When not creating an anti fill scene, acts once the scene has been actually created and is ready to be set active This is bypassed when creating the scene
- Parameters
-
◆ PrepareAntiFillSetSceneActive()
virtual void MoreMountains.Tools.MMSceneLoadingAntiSpill.PrepareAntiFillSetSceneActive |
( |
| ) |
|
|
protectedvirtual |
Sets the anti spill scene active
◆ _antiSpillScene
Scene MoreMountains.Tools.MMSceneLoadingAntiSpill._antiSpillScene |
|
protected |
◆ _antiSpillSceneName
string MoreMountains.Tools.MMSceneLoadingAntiSpill._antiSpillSceneName |
|
protected |
◆ _destinationScene
Scene MoreMountains.Tools.MMSceneLoadingAntiSpill._destinationScene |
|
protected |
◆ _onActiveSceneChangedCallback
UnityAction<Scene, Scene> MoreMountains.Tools.MMSceneLoadingAntiSpill._onActiveSceneChangedCallback |
|
protected |
◆ _scenesInBuild
List<string> MoreMountains.Tools.MMSceneLoadingAntiSpill._scenesInBuild |
|
staticprotected |
◆ _sceneToLoadName
string MoreMountains.Tools.MMSceneLoadingAntiSpill._sceneToLoadName |
|
protected |
◆ _spillSceneRoots
List<GameObject> MoreMountains.Tools.MMSceneLoadingAntiSpill._spillSceneRoots = new List<GameObject>(50) |
|
protected |
The documentation for this class was generated from the following file: