# box

> Style used by default for GUI.Box controls.

## Definition

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

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

### Examples

```csharp
using UnityEngine;

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

    GUIStyle style;

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