ComponentIconInHierarchy
An editor application that displays component icons to the hierarchy window.\n\r\nAlso, this app tells a game object has a missing component or a component has a missing field by following means:\r\n- displaying the warning icon to the hierarchy window \r\n- putting error messages on the console window
com.lilytech-lab.component-icon-in-hierarchy Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/component-icon-in-hierarchy.git README Markdown
Copy this to your project's README.md
## Installation
Add **ComponentIconInHierarchy** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/component-icon-in-hierarchy.git
```
[](https://www.pkglnk.dev/pkg/component-icon-in-hierarchy)README
Component Icon In Hierarchy
An Unity editor application that helps following requests:
- As we often say something like, "Where is the GameObjet which attached the Collider?" when the game object has many child game objects, it's helpful if we can see what component is attached to the game object in the hierarchy window.
- It's helpful if we can see as soon as possible that there is a game object which has a MISSING component or the component has MISSING fields such as materials.
📦 How to Install
Unity Package Manager
On Package Manager, select "Install package from git URL", and input "https://github.com/lilytech-lab/ComponentIconInHierarchy.git" to the URL box.
Open UPM
Open UPM is also available.
openupm add com.lilytech-lab.component-icon-in-hierarchy
Download Files
Download from Releases.
⚙️ Features
Component Icon
- Displays component icons attached to the game object on the hierarchy window in order with right aligned.
- Excludes Transform and RectTransform icons.
- Displays only one script icon if multiple scripts are attached.
- Displays translucent icon when the component is not active.
Missing Indicator
- Displays warning icon on the hierarchy window if the game object is in below status:
- Attached component is missing.
- Displays for a first component the app found per a game object.
- SerializeField in attached component is missing.
- Attached component is missing.
- Puts error messages to the console window and notifies following information.
- Existing a game object attached missing component(s).
- Name of a missing field the app found first per a component.
Switching Visibility
There are menus you can switch component icon and missing indicator visibilities in the context menu on the hierarchy window.
The GameObject menu on the menu bar have same menus, and you can see if the functions are active or not by tick.
It might take a bit of time until the hierarchy window refreshed when the visibility has changed via the menu bar.
Frequency of Error Messages
The error message tells missing status is put on EditorApplication.hierarchyWindowItemOnGUI event, so a new message is put every time the hierarchy window refreshed. It's pretty frequent, so the console window will look like the below image when operating the hierarchy window.
We know it's too much, but it would be our relief if you think, 'It's OK because I would correct the error soon due to the loud messages.'
🔖 Unity Versions
This app is checked working on following Unity versions:
- 2020.3.5f1
- 6000.0.29f1
📗 Blogs
We wrote some points about the program. But sorry for written in Japanese.
👥 Help & Contribute
When you find some improvements, creating a pull request would be a great help.
🏢 Author Info
Lilytech Lab Ltd.
https://www.lilytech-lab.com/
https://github.com/lilytech-lab
A small IT engineering company in Japan.
If you find this project helpful, I would greatly appreciate your support here.
📄 License
This application is under the MIT License.
No comments yet. Be the first!