HierarchyDecorator icon indicating copy to clipboard operation
HierarchyDecorator copied to clipboard

Feature Request - Show script names and count

Open andrewpros opened this issue 11 months ago • 6 comments

Feature Description Is is possible to show all script names on GameObjects? This wont fit in a single line so this needs to be like virtual children of the object in the view with indent, just like real children. It would be also nice to see how many there are script on the object with the stacked script option on, it can be a number to the right of script icon.

Reason for feature It would be very helpful to see the overall structure of objects in the hierarchy with all their script names, this would provide even better understanding of the setup between the objects, scene and scripts as the names would immediately inform about the contained functionality and relations of objects, especially for more complex scene hierarchies, just by looking at it.

andrewpros avatar Jan 06 '25 00:01 andrewpros

In the most recent release you can hover over the icons to see a tooltip saying what components/scripts they are. This also works with stacked icons too!

I don't think adding fake children in the hierarchy tree is efficient as it adds more space used up and could make things more complicated to view.

Image

WooshiiDev avatar Feb 03 '25 16:02 WooshiiDev

I understand, but im not interested in hover option as it defeats the purpose, having to hover makes it unusable to gain anything i mentioned just by looking at the hierarchy.

Maybe i didn’t use the right words calling it fake children, but i dont see how this would be possible otherwise, more like labels under the object to show all scripts contained in the object, but yes, this cannot be done without using some space.

But that’s the point, a im willing to sacrifice that space to gain unmatched view that tells me much more just by looking at it and as this would be an option, no one is forced to use it.

So im not asking for an opinion of the functionality, im fine with the space and complexity, im just not that into the custom editors possibilities, so i just want to know if its is possible to do, and if it is, will this be implemented or i need to do it myself?

andrewpros avatar Feb 04 '25 15:02 andrewpros

I don't think I understand what you mean, as you say you want a feature that "show all script names on game objects", and hovering over the icons tells you this.

I do think adding a number to stacked icons is a good idea, and I'm happy to do this 🙏

If you're able to explain what you mean more for the other idea, I might have a better understanding of what you are thinking of

WooshiiDev avatar Feb 04 '25 16:02 WooshiiDev

Yes, but if i need to hover i dont see the scripts just looking at it, hovering is not the same as having it all visible by just looking at the hierarchy, thats the whole point, to see it all at once in the hierarchy which will immediately tell me much more about the setup and relation between components, and u not always work with projects u know.

And the only way to do this is to make space in the hierarchy for all the script names, but im not sure it is possible to add pure virtual labels below the gameobjects in hierarchy, i say virtual cuz they are not real objects, the only purpose is to display helper labels, script names.

andrewpros avatar Feb 05 '25 15:02 andrewpros

This doesn't feel like something efficient or has enough purpose to add. Editor side only game objects can be added so if you'd like to look into this of course you can do so, but it doesn't seem like something that really makes things clearer, and really just takes up a lot of wasted space in the hierarchy.

I also feel drawing many more gameObjects to show information for the editor only like this is a very poor way to display information, when you already have a hierarchy full of gameobjects. It would become quite messy.

and u not always work with projects u know.

For this specifically, you can just click on the game objects, and see what components are on them.

My tool is only for visual additions and extra helpful features, not new functions that replace normal hierarchy viewing. Hovering also does what you say, but again, you can just click on the game objects to see what they have on them.

I can keep this feature issue for showing script count if you'd like, as that is something I can get into the next version release 🙏

WooshiiDev avatar Feb 05 '25 17:02 WooshiiDev

Well like i said, im not here to talk about opinions what would be helpful for someone or not and why as ppl have many different needs, something great for me might be useless for someone else and vice versa. So i get it that maybe u dont see the point.

I just wanted to know if it can be done or not, but i dont know why i even called it labels, its doesn’t matter what it is, as long as it can work efficiently in the hierarchy and provide the functionality.

The count is an extra, the script view is the main thing, just dont know the unity hierarchy api and what’s possible.

andrewpros avatar Feb 05 '25 21:02 andrewpros