Class PersistenceScene
Inheritance
object
PersistenceScene
Namespace: i5.Toolkit.Core.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class PersistenceScene
Methods
GetPersistentScene()
Gets or creates the persistent scene if it does not exist In the editor, this will always return the active scene since you should not create new scenes in the editor
Declaration
public static Scene GetPersistentScene()
Returns
Type | Description |
---|---|
Scene | Returns the persistent scene |
MarkPersistent(GameObject)
Moves the provided GameObject to the persistent scene If this is executed in an editor build, this has no effect
Declaration
public static void MarkPersistent(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | GameObject which should be made persistent |
UnmarkPersistent(GameObject)
Makes an object not persist anymore by moving it to the active scene
Declaration
public static void UnmarkPersistent(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | The GameObject which should not be persistent anymore |