# HeaderAttribute(string)

> Add a header above some fields in the Inspector.

## Definition

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

```csharp
public HeaderAttribute(string header)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The header text.

### Remarks

This header is only displayed when the field is visible in the Inspector. If the field is private or decorated with a [HideInInspector](/engine/6000.7/script-reference/unityengine/hideininspector.md) attribute, it does not display.
