# HideInHierarchy

> The object will not appear in the hierarchy.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
HideInHierarchy = 1
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Creates 5 planes and hides them from the Hierarchy in the Editor.

    void Start()
    {
        for (int i = 0; i < 5; i++)
        {
            GameObject createdGO = GameObject.CreatePrimitive(PrimitiveType.Plane);
            createdGO.hideFlags = HideFlags.HideInHierarchy;
        }
    }
}
```
