Tanoda
|
Static Public Member Functions | |
static void | AddOnSelectionChangeListener (Callback< IEnumerable< GameObject > > del) |
static void | AddOnRemovedFromSelectionListener (Callback< IEnumerable< GameObject > > del) |
static void | Clear () |
static void | SetSelection (IEnumerable< GameObject > selection) |
static void | SetSelection (GameObject selection) |
static void | AddToSelection (GameObject go) |
static void | RemoveFromSelection (GameObject go) |
static void | OnExternalUpdate () |
Protected Member Functions | |
override void | Awake () |
![]() | |
virtual void | Initialize () |
virtual void | Awake () |
Properties | |
static List< GameObject > | gameObjects [get] |
A list of the currently selected GameObjects. More... | |
static GameObject | activeGameObject [get] |
![]() | |
virtual bool | dontDestroyOnLoad [get] |
Override to maintain an instance of this object across level loads. More... | |
static T | instance [get] |
static T | nullableInstance [get] |
Events | |
Callback< IEnumerable< GameObject > > | OnSelectionChange |
Callback< IEnumerable< GameObject > > | OnRemovedFromSelection |
Manages the current selection.
Definition at line 12 of file pb_Selection.cs.
|
static |
Add a listener for selection removal.
Definition at line 45 of file pb_Selection.cs.
|
static |
Add a listener for selection changes.
Definition at line 34 of file pb_Selection.cs.
|
static |
Append go
to the current selection (doesn't add in the event that it is already in the selection list).
Definition at line 118 of file pb_Selection.cs.
|
protectedvirtual |
Delegate called when a new GameObject is selected.
Reimplemented from GILES.pb_MonoBehaviourSingleton< pb_Selection >.
Definition at line 14 of file pb_Selection.cs.
|
static |
Clear all objects in the current selection.
Definition at line 61 of file pb_Selection.cs.
|
static |
Called by code changes to the current selection that should update the pb_SceneEditor in use. For example, this is used by the Inspector to update the handles and other scene gizmos when changing transform values.
Definition at line 152 of file pb_Selection.cs.
|
static |
Remove an object from the current selection.
Definition at line 129 of file pb_Selection.cs.
|
static |
Clear the selection lists and set them to selection
.
Definition at line 109 of file pb_Selection.cs.
|
static |
Clear the selection lists and set them to selection
.
Definition at line 92 of file pb_Selection.cs.
|
staticget |
Returns the first gameObject in the selection list.
Definition at line 81 of file pb_Selection.cs.
|
staticget |
A list of the currently selected GameObjects.
Definition at line 56 of file pb_Selection.cs.
Callback<IEnumerable<GameObject> > GILES.pb_Selection.OnRemovedFromSelection |
Event called on objects that were previously selected but now are not.
Definition at line 29 of file pb_Selection.cs.
Callback<IEnumerable<GameObject> > GILES.pb_Selection.OnSelectionChange |
Definition at line 24 of file pb_Selection.cs.