Show / Hide Table of Contents

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 Source

DisableAllChildRenderers(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?

| Improve this Doc View Source

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?

  • Improve this Doc
  • View Source
Back to top Generated by DocFX