# button

> Style used by default for GUI.Button controls.

## Definition

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

```csharp
public GUIStyle button { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Modifies only the button style of the current GUISkin

    GUIStyle style;

    void OnGUI()
    {
        GUI.skin.box = style;
        GUILayout.Button("This is a button.");
    }
}
```
