# enabled

> Sets or retrieves the enabled status of this gyroscope.

## Definition

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

```csharp
public bool enabled { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    bool enableTilt;

    void OnGUI()
    {
        if (Input.gyro.enabled)
        {
            GUILayout.Toggle(enableTilt, "Enable tilt control");
        }

        // Other GUI elements...
    }
}
```
