Crosstales.Common.Util.SurviveSceneSwitch Class Reference
Allows any Unity gameobject to survive a scene switch. This is especially useful to keep the music playing while loading a new scene. More...
Inheritance diagram for Crosstales.Common.Util.SurviveSceneSwitch:
Public Attributes | |
GameObject[] | Survivors |
Objects which have to survive a scene switch. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Crosstales.Common.Util.Singleton< SurviveSceneSwitch > | |
static void | CreateInstance (bool searchExistingGameObject=true, bool deleteExistingInstance=false) |
Creates an instance of this object. More... | |
static void | DeleteInstance () |
Deletes the instance of this object. More... | |
Static Public Attributes inherited from Crosstales.Common.Util.Singleton< SurviveSceneSwitch > | |
static string | PrefabPath |
Fully qualified prefab path. More... | |
static string | GameObjectName |
Name of the gameobject in the scene. More... | |
Protected Member Functions inherited from Crosstales.Common.Util.Singleton< SurviveSceneSwitch > | |
virtual void | Awake () |
virtual void | OnDestroy () |
virtual void | OnApplicationQuit () |
Static Protected Attributes inherited from Crosstales.Common.Util.Singleton< SurviveSceneSwitch > | |
static T | instance |
Properties inherited from Crosstales.Common.Util.Singleton< SurviveSceneSwitch > | |
static T | Instance [get, protected set] |
Returns the singleton instance of this class. More... | |
bool | DontDestroy [get, set] |
Don't destroy gameobject during scene switches. More... | |
Detailed Description
Allows any Unity gameobject to survive a scene switch. This is especially useful to keep the music playing while loading a new scene.
Member Data Documentation
◆ Survivors
GameObject [] Crosstales.Common.Util.SurviveSceneSwitch.Survivors |
Objects which have to survive a scene switch.
The documentation for this class was generated from the following file:
- C:/Users/slaub/Unity/assets/DJPro/DJPro/Assets/Plugins/crosstales/Common/Extras/SurviveSceneSwitch/Scripts/SurviveSceneSwitch.cs