# GUI.ToolbarButtonSize

> Determines how toolbar button size is calculated.

## Definition

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

```csharp
public enum GUI.ToolbarButtonSize
```

## Fields

| Value                                                                                               | Description                                                                                                                         |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| [FitToContents](/engine/6000.7/script-reference/unityengine/gui/toolbarbuttonsize/fittocontents.md) | The width of each toolbar button is calculated based on the width of its content.                                                   |
| [Fixed](/engine/6000.7/script-reference/unityengine/gui/toolbarbuttonsize/fixed.md)                 | Calculates the button size by dividing the available width by the number of buttons. The minimum size is the maximum content width. |
