# onFocused

> Rendering settings for when the element has keyboard and is turned on.

## Definition

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

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

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void OnGUI()
    {
        GUI.skin.button.onFocused.textColor = Color.green;
    }
}
```
