# fixedWidth

> If non-0, any GUI elements rendered with this style will have the width specified here.

## Definition

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

```csharp
public float fixedWidth { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Prints the value of fixedWidth.

    void OnGUI()
    {
        Debug.Log(GUI.skin.button.fixedWidth);
    }
}
```
