Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

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

Style
Preview
pkglnk installs badge
## 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
```

[![pkglnk](https://www.pkglnk.dev/badge/component-icon-in-hierarchy.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/component-icon-in-hierarchy)

README

Component Icon In Hierarchy

openupm Sponsor me on GitHub

日本語版ReadMeはこちら

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.

UsingImage

📦 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.
  • 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.

ContextMenu

The GameObject menu on the menu bar have same menus, and you can see if the functions are active or not by tick.

MenuBar

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.

TooManyErrorMessages

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.

Comments

No comments yet. Be the first!