Highroad Engine v1.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.Tools.MMSceneLoadingAntiSpill Class Reference

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...

Public Member Functions

virtual void PrepareAntiFill (string sceneToLoadName)
 Creates the temporary scene More...
 

Protected Member Functions

virtual void OnActiveSceneChanged (Scene from, Scene to)
 Once the destination scene has been loaded, we catch that event and prepare to empty More...
 
virtual void EmptyAntiSpillScene ()
 Empties the contents of the anti spill scene into the destination scene More...
 

Protected Attributes

Scene _antiSpillScene
 
Scene _destinationScene
 
UnityAction< Scene, Scene > _onActiveSceneChangedCallback
 
string _sceneToLoadName
 
List< GameObject > _spillSceneRoots = new List<GameObject>(50)
 

Detailed Description

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

Member Function Documentation

◆ 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
from
to

◆ PrepareAntiFill()

virtual void MoreMountains.Tools.MMSceneLoadingAntiSpill.PrepareAntiFill ( string  sceneToLoadName)
virtual

Creates the temporary scene

Parameters
sceneToLoadName

Member Data Documentation

◆ _antiSpillScene

Scene MoreMountains.Tools.MMSceneLoadingAntiSpill._antiSpillScene
protected

◆ _destinationScene

Scene MoreMountains.Tools.MMSceneLoadingAntiSpill._destinationScene
protected

◆ _onActiveSceneChangedCallback

UnityAction<Scene, Scene> MoreMountains.Tools.MMSceneLoadingAntiSpill._onActiveSceneChangedCallback
protected

◆ _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: