> For the complete documentation index, see [llms.txt](https://infinitypbr.gitbook.io/magic-pig-games/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitypbr.gitbook.io/magic-pig-games/custom-component-names.md).

# CUSTOM COMPONENT NAMES

<mark style="color:orange;">**Create Component Names**</mark> makes your Unity Inspector easier to read by allowing custom display names and colors for component headers and object references. It’s perfect for complex GameObjects, modular systems, and designer-friendly workflows.

<figure><img src="/files/a2LrvqcoTivzJt8wOSZH" alt=""><figcaption><p>Maybe you won't have THIS MANY of the same component...but maybe you will!</p></figcaption></figure>

#### [Available on the Asset Store](https://assetstore.unity.com/packages/must-have-tools/353228?aid=1100lxWw\&pubref=p72)!

## Quick Start

After importing the package, visit any Inspector and you'll find a new icon in the header row. Click it, and you can name your component and optionally apply colors. Select a preset if you'd prefer.

<figure><img src="/files/FgsEj5w3Uc8d7bAWNE2s" alt=""><figcaption><p>Click that pencil icon!</p></figcaption></figure>

<figure><img src="/files/0HOqor0P8tcHPlxsEXhr" alt="" width="345"><figcaption><p>Type in a Custom Name, and toggle on/off the various colors.</p></figcaption></figure>

<figure><img src="/files/uVkUx9QnDepR1I4R2Q0s" alt=""><figcaption><p>Devs may find this far easier to read, especially in situations where one object has multiple components of the same type.</p></figcaption></figure>

**That's it!**

Now when you drag these components into object fields, they'll also display their custom name!

<figure><img src="/files/h4jrnbNH8rmBuDmA3sd6" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/FzqBAJ6NUKOqRwW1loFh" alt="" width="563"><figcaption></figcaption></figure>

### Turn Off Object Field Treatment

If you'd like to turn off the object field treatment, you can toggle this via the menu option `Tools/Magic Pig Games/Custom Component Names/Show Custom Names In Object Fields`.

<figure><img src="/files/kvvFxgh5r0HjWKZksaJR" alt=""><figcaption></figcaption></figure>

## Managing Presets

{% hint style="success" %}
Any change to the preset colors in this view will affect all Components that are using the same preset, making it easy to update everything at once!
{% endhint %}

Find the `ComponentHeaderColorPresets` object in the scene. The custom Inspector will show you all the presets, along with a preview of them. Some will look better with the "Dark Skin", others the "Light Skin". You can delete or reorder the presets here as well.

<figure><img src="/files/mIg9dMMS8hyyhnZiTloR" alt="" width="375"><figcaption></figcaption></figure>

If you have any questions or find any bugs, please visit the [**Discord**](https://discord.com/invite/cmZY2tH) and open a support ticket in the support forum!
