Quantum 3
3.0.9
Unity game object utility methods for Quantum. More...
Static Public Member Functions | |
| static void | Hide (this Component component) |
| Set the component game object to inactive after checking for null. More... | |
| static void | Hide (this GameObject gameObject) |
| Will GameObject.SetActive(bool) to false if the game object is not null and is active."/> More... | |
| static void | Hide (this GameObject[] gameObjects) |
| Hiding will GameObject.SetActive(bool) to false on all game objects in the array. More... | |
| static void | Hide< T > (this T[] components) |
| Set all game objects found the component list to in-active after checking for null. More... | |
| static void | Show (this Component component) |
| Sets the component game object to active after checking for null. More... | |
| static void | Show (this GameObject gameObject) |
| Will GameObject.SetActive(bool) to true if the game object is not null and not already active. More... | |
| static void | Show (this GameObject[] gameObjects) |
| Showing will GameObject.SetActive(bool) to true on all game objects in the array. More... | |
| static void | Show (this Image component, Sprite sprite) |
| Sets the image sprite and sets the game object to active after checking the component for null. More... | |
| static void | Show< T > (this T[] components) |
| Set all game objects found the component list to active after checking for null. More... | |
| static bool | Toggle (this Component component, bool state) |
| Set the component's game object active state into the desired state after checking for null. More... | |
| static bool | Toggle (this GameObject gameObject) |
| Toggle the game object's active state after checking for null. More... | |
| static bool | Toggle (this GameObject gameObject, bool state) |
| Set game object active state into the desired state after checking for null. More... | |
Unity game object utility methods for Quantum.
|
inlinestatic |
Showing will GameObject.SetActive(bool) to true on all game objects in the array.
| gameObjects | List of game objects to process |
|
inlinestatic |
Hiding will GameObject.SetActive(bool) to false on all game objects in the array.
| gameObjects | List of game objects to process |
|
inlinestatic |
Will GameObject.SetActive(bool) to true if the game object is not null and not already active.
| gameObject | Game object to show |
|
inlinestatic |
Will GameObject.SetActive(bool) to false if the game object is not null and is active."/>
| gameObject | Game object to hide |
|
inlinestatic |
Toggle the game object's active state after checking for null.
| gameObject | Game object to toggle |
|
inlinestatic |
Set game object active state into the desired state after checking for null.
| gameObject | Game object to toggle |
| state | The state to toggle into |
|
inlinestatic |
Set the component's game object active state into the desired state after checking for null.
| component | Component to toggle its game object |
| state | The desired active state |
|
inlinestatic |
Sets the component game object to active after checking for null.
| component | Input component |
|
inlinestatic |
Sets the image sprite and sets the game object to active after checking the component for null.
| component | Image component |
| sprite | Sprite to set |
|
inlinestatic |
Set the component game object to inactive after checking for null.
| component | Input component |
|
inlinestatic |
Set all game objects found the component list to active after checking for null.
| T | Type must be derived from component |
| components | Component list to enabled game objects on |
| T | : | Component |
|
inlinestatic |
Set all game objects found the component list to in-active after checking for null.
| T | Type must be derived from component |
| components | Component list to disable game objects on |
| T | : | Component |