Class GameObjectExtensions
Static class containing useful GameObject extension methods.
Inheritance
System.Object
GameObjectExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GlitchedPolygons.ExtensionMethods
Assembly: UnityScriptsLibrary.dll
Syntax
public static class GameObjectExtensions
Methods
| Improve this Doc View SourceDisableAllChildRenderers(GameObject, Boolean)
Disables this GameObject's Renderer component and all child Renderers.
Declaration
public static void DisableAllChildRenderers(this GameObject gameObject, bool includeInactiveRenderers = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | The GameObject whose child Renderers you want to disable. |
| System.Boolean | includeInactiveRenderers | Should inactive child Renderers be considered? |
EnableAllChildRenderers(GameObject, Boolean)
Enables this GameObject's Renderer component and all child Renderers.
Declaration
public static void EnableAllChildRenderers(this GameObject gameObject, bool includeInactiveRenderers = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | The GameObject whose child Renderers you want to enable. |
| System.Boolean | includeInactiveRenderers | Should inactive child Renderers be considered? |