# name

> The name of this GUIStyle. Used for getting them based on name.

## Definition

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

```csharp
public string name { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Prints the name of the style.

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