> For the complete documentation index, see [llms.txt](https://ashobot.gitbook.io/ultimate-attributes-pack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ashobot.gitbook.io/ultimate-attributes-pack/decorators.md).

# Decorators

<details>

<summary>Title</summary>

Displays a big title in the inspector to create different sections.

**Supported property types**

Everything.

**Parameters**

* Title
* TextColor
* BackgroundColor
* IconPath

<mark style="color:purple;">Code Example</mark>

<pre class="language-csharp"><code class="lang-csharp"><strong>using UltimateAttributesPack;
</strong><strong>
</strong><strong>public class TitleExample : MonoBehaviour
</strong>    {
        // If color is not defined, it use the base text color of the inspector
        [Title("Float")]
        public float firstFloat;
        public float secondFloat;

        // You can use predefined colors ("black", "blue", "cyan", "green", "grey", "magenta", "red", "white", "yellow", "orange", "pink", "purple", "light green", "light blue", "brown", "dark blue")
        [Title("Integers", "white", "light blue")]
        public int firstInt;
        public int secondInt;

        // You can also use exadecimal for the color
        [Title("Booleans", "E6B997", "FFFBDC")]
        public bool firstBool;
        public bool secondBool;

        // You can set an icon path that will be displayed at the left of the title
        [Title("Strings", "444746", "grey", "Assets/UltimateAttributesPack/Examples/Assets/Icons/PenIcon.png")]
        public string firstString;
        public string secondString;
    }
</code></pre>

<img src="https://3496865040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJRT3Vo5QZSbuYGZVtRD%2Fuploads%2FZrPAaFR3sRKI53y2i7wm%2FTitle.PNG?alt=media&amp;token=d5a1a40e-57cc-4e0d-8f37-477f172b617b" alt="" data-size="original">

</details>

<details>

<summary>SubTitle</summary>

Displays a subtitle in the inspector to create different sub-sections.

**Supported property types**

Everything.

**Parameters**

* Title
* TextColor
* BackgroundColor
* IconPath

<mark style="color:purple;">Code Example</mark>

<pre class="language-csharp"><code class="lang-csharp">using UltimateAttributesPack;
<strong>
</strong><strong>public class SubTitleExample : MonoBehaviour
</strong>    {
        // If color is not defined, it use the base text color of the inspector
        [SubTitle("Float")]
        public float firstFloat;
        public float secondFloat;

        // You can use predefined colors ("black", "blue", "cyan", "green", "grey", "magenta", "red", "white", "yellow", "orange", "pink", "purple", "light green", "light blue", "brown", "dark blue")
        [SubTitle("Integers", "white", "light blue")]
        public int firstInt;
        public int secondInt;

        // You can also use exadecimal for the color
        [SubTitle("Booleans", "E6B997", "FFFBDC")]
        public bool firstBool;
        public bool secondBool;

        // You can set a icon path that will be displayed at the left of the subtitle
        [SubTitle("Strings", "444746", "grey", "Assets/UltimateAttributesPack/Examples/Assets/Icons/PenIcon.png")]
        public string firstString;
        public string secondString;
    }
</code></pre>

<img src="https://3496865040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJRT3Vo5QZSbuYGZVtRD%2Fuploads%2FzCvlHmBtGAiLzYsR3jKp%2FSubTitle.PNG?alt=media&amp;token=4d375594-298a-4834-b9c2-805ebd36a108" alt="" data-size="original">

</details>

<details>

<summary>LineTitle</summary>

Displays a line title in the inspector to create different sections.

**Supported property types**

Everything.

**Parameters**

* Title
* TextColor
* LineColor

<mark style="color:purple;">Code Example</mark>

```csharp
using UltimateAttributesPack;

public class LineTitleExample : MonoBehaviour
    {
        // If color is not defined, it use the base text color of the inspector
        [LineTitle("Float")]
        public float firstFloat;
        public float secondFloat;

        // You can use predefined colors ("black", "blue", "cyan", "green", "grey", "magenta", "red", "white", "yellow", "orange", "pink", "purple", "light green", "light blue", "brown", "dark blue")
        [LineTitle("Integers", "white", "light blue")]
        public int firstInt;
        public int secondInt;

        // You can also use exadecimal for the color
        [LineTitle("Booleans", "E6B997", "FFFBDC")]
        public bool firstBool;
        public bool secondBool;
    }
```

<img src="https://3496865040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJRT3Vo5QZSbuYGZVtRD%2Fuploads%2FP9k5htg57TYcMKfirqUR%2FLineTitle.PNG?alt=media&amp;token=89e7ca5f-9f45-46e5-926f-469bdaa418fa" alt="" data-size="original">

</details>

<details>

<summary>Line</summary>

Displays a line in the inspector to separate sections.

**Supported property types**

Everything.

**Parameters**

* Color

<mark style="color:purple;">Code Example</mark>

```csharp
using UltimateAttributesPack;

public class LineExample : MonoBehaviour
    {
        // If color is not defined, it use the base text color of the inspector
        [Line]
        public int intValue;

        // You can use predefined colors ("black", "blue", "cyan", "green", "grey", "magenta", "red", "white", "yellow", "orange", "pink", "purple", "light green", "light blue", "brown", "dark blue")
        [Line("light blue")]
        public float floatValue;

        // You can also use exadecimal for the color
        [Line("34A853")]
        public Vector3 vector;
    }
```

<img src="https://3496865040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJRT3Vo5QZSbuYGZVtRD%2Fuploads%2F65hD9Oc3ihj4zJbjllZj%2FLine.PNG?alt=media&amp;token=7859255f-94fa-47b2-86a0-012689322d17" alt="" data-size="original">

</details>

<details>

<summary>HelpBox</summary>

Displays an helpbox in the inspector to show additional informations.

**Supported property types**

Everything.

**Parameters**

* HelpText
* MessageType

<mark style="color:purple;">Code Example</mark>

```csharp
using UltimateAttributesPack;

public class HelpBoxExample : MonoBehaviour
    {
        // You can show an helpbox without message type to just show the text
        [HelpBox("This is an helpbox", HelpBoxMessageType.None)]
        public bool boolValue;

        // If you don't define message type, it display an info helpbox
        [HelpBox("This is an info helpbox")]
        public int intValue;

        // You can set the message type as you want (None, Info, Warning, Error)
        [HelpBox("This is a warning helpbox", HelpBoxMessageType.Warning)]
        public float floatValue;

        [HelpBox("This is an error helpbox", HelpBoxMessageType.Error)]
        public string stringValue;
    }
```

<img src="https://3496865040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJRT3Vo5QZSbuYGZVtRD%2Fuploads%2FfIV0CLnjVeUsimeFPIP4%2FHelpBox.PNG?alt=media&amp;token=9d1cc822-3c0e-452d-8408-c65d40aed2f4" alt="" data-size="original">

</details>

***
