Tanoda
|
Public Member Functions | |
void | ThisIsAReload () |
void | EnablePhysics () |
void | EditEnvironmentToggle () |
void | EditToolsToggle (GameObject[] tools) |
void | Clear () |
void | RepositionTools () |
void | LoadEnvAndTools (bool onlyTools=false) |
Static Public Member Functions | |
static void | AddOnObjectInstantiatedListener (Callback< GameObject > listener) |
static void | AddOnLevelLoadedListener (Callback listener) |
static void | AddOnLevelClearedListener (Callback listener) |
static UnityEngine.GameObject | Instantiate (UnityEngine.GameObject original) |
static UnityEngine.GameObject | Instantiate (UnityEngine.GameObject original, Vector3 position, Quaternion rotation) |
static UnityEngine.GameObject | Instantiate (UnityEngine.GameObject original, Vector3 position, Quaternion rotation, Transform parent) |
static string | SaveLevel () |
static void | LoadLevel (string levelJson, bool ssol=false) |
static void | ReloadLevel (string levelJson) |
static List< GameObject > | Children () |
Public Attributes | |
bool | IsLoadingEnvNow = false |
Protected Member Functions | |
override void | Awake () |
![]() | |
virtual void | Initialize () |
virtual void | Awake () |
Events | |
Callback< GameObject > | onObjectInstantiated |
Callback | onLevelLoaded |
Callback | onLevelCleared |
Additional Inherited Members | |
![]() | |
virtual bool | dontDestroyOnLoad [get] |
Override to maintain an instance of this object across level loads. More... | |
static T | instance [get] |
static T | nullableInstance [get] |
Represents the root object of a scene graph. When adding or removing objects from the scene, make sure to register those changes with this class.
Definition at line 25 of file pb_Scene.cs.
|
static |
Add a callback to be notified when a pb_Scene is cleared.
Definition at line 118 of file pb_Scene.cs.
|
static |
Add a callback to be notified when a pb_Scene is loaded from a file or JSON string.
Definition at line 107 of file pb_Scene.cs.
|
static |
Notification when a new object is instantiated in the scene.
Definition at line 96 of file pb_Scene.cs.
|
protectedvirtual |
If overriding, be sure to call base.Awake().
Reimplemented from GILES.pb_MonoBehaviourSingleton< pb_Scene >.
Definition at line 29 of file pb_Scene.cs.
|
static |
Recursively search a transform for children and return all of 'em as a list. Does not include the root transform in list.
Definition at line 1193 of file pb_Scene.cs.
void GILES.pb_Scene.Clear | ( | ) |
Destroy all children in the scene.
Definition at line 1055 of file pb_Scene.cs.
void GILES.pb_Scene.EditEnvironmentToggle | ( | ) |
Definition at line 759 of file pb_Scene.cs.
void GILES.pb_Scene.EditToolsToggle | ( | GameObject[] | tools | ) |
Definition at line 794 of file pb_Scene.cs.
void GILES.pb_Scene.EnablePhysics | ( | ) |
Definition at line 367 of file pb_Scene.cs.
|
static |
Wrapper around UnityEngine.GameObject.Instantiate() that makes sure the new object is correctly added to the Level Editor scenegraph. In order for objects to be saved and loaded properly, they must belong to the scenegraph.
Definition at line 133 of file pb_Scene.cs.
|
static |
Wrapper around UnityEngine.GameObject.Instantiate() that makes sure the new object is correctly added to the Level Editor scenegraph. In order for objects to be saved and loaded properly, they must belong to the scenegraph.
Definition at line 166 of file pb_Scene.cs.
|
static |
Wrapper around UnityEngine.GameObject.Instantiate() that makes sure the new object is correctly added to the Level Editor scenegraph. In order for objects to be saved and loaded properly, they must belong to the scenegraph.
Definition at line 190 of file pb_Scene.cs.
void GILES.pb_Scene.LoadEnvAndTools | ( | bool | onlyTools = false | ) |
Definition at line 1074 of file pb_Scene.cs.
|
static |
Load a saved level into the scene. This clears the currently open scene.
Definition at line 238 of file pb_Scene.cs.
|
static |
Definition at line 1000 of file pb_Scene.cs.
void GILES.pb_Scene.RepositionTools | ( | ) |
Definition at line 1069 of file pb_Scene.cs.
|
static |
Save the current level. Returns a JSON formatted string with the entire scene-graph serialized.
Definition at line 207 of file pb_Scene.cs.
void GILES.pb_Scene.ThisIsAReload | ( | ) |
bool GILES.pb_Scene.IsLoadingEnvNow = false |
Definition at line 72 of file pb_Scene.cs.
Callback GILES.pb_Scene.onLevelCleared |
Event raised when a level cleared.
Definition at line 91 of file pb_Scene.cs.
Callback GILES.pb_Scene.onLevelLoaded |
Event raised when a level is loaded.
Definition at line 86 of file pb_Scene.cs.
Callback<GameObject> GILES.pb_Scene.onObjectInstantiated |
Event raised when an object is instantiated in the scene. Passes the new object as a parameter.
Definition at line 81 of file pb_Scene.cs.