Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Hide

Hides a GameObject, or an Array of GameObjects, and their descendants.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

Hide(GameObject, bool)

Hides a GameObject, or an Array of GameObjects, and their descendants.
public void Hide(GameObject gameObject, bool includeDescendants)

Parameters

gameObject

GameObject to hide.

includeDescendants

Whether to also hide descendants.

Hide(Scene)

Hides all GameObjects in a scene.
public void Hide(Scene scene)

Parameters

scene

Scene containing GameObjects to hide.

Hide(GameObject[], bool)

Hides a GameObject, or an Array of GameObjects, and their descendants.
public void Hide(GameObject[] gameObjects, bool includeDescendants)

Parameters

gameObjects

Array of GameObjects to hide.

includeDescendants

Whether to also hide descendants.