# activeSelf

> The local active state of the GameObject. True if active, false if inactive. (Read Only)

## Definition

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

```csharp
public bool activeSelf { get; }
```

### Remarks

The local active state of this GameObject, which is set using [GameObject.SetActive](/engine/6000.7/script-reference/unityengine/gameobject/setactive.md). A locally active GameObject may still be inactive in the scene hierarchy because a parent is not active. Use [GameObject.activeInHierarchy](/engine/6000.7/script-reference/unityengine/gameobject/activeinhierarchy.md) if you want to check if the GameObject is actually treated as active in the Scene.

Additional Resources: [GameObject.SetActive](/engine/6000.7/script-reference/unityengine/gameobject/setactive.md), [GameObject.activeInHierarchy](/engine/6000.7/script-reference/unityengine/gameobject/activeinhierarchy.md).
