# onActive

> Rendering settings for when the element is turned on and pressed down.

## Definition

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

```csharp
public GUIStyleState onActive { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Sets the text color of button to yellow when an
    // element is turned on and pressed down.
    void OnGUI()
    {
        GUI.skin.button.onActive.textColor = Color.yellow;
    }
}
```
