# GetObjectEnabled(Object)

> Is the object enabled (0 disabled, 1 enabled, -1 has no enabled button).

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static int GetObjectEnabled(Object target)
```

### Parameters

**** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)):&#x20;

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |
