#Hierarchy Customization

1 messages · Page 1 of 1 (latest)

elfin crow
#

Let's us this thread

#

6 it the latest version of Unity

proven furnace
#

I use 2022.3.44f1. Not sure when i downloaded it but guess it was less than a year

#

Checked hub and it look like i use different from 6 version

elfin crow
#

i am seeing the same behavior in 2022.x i do not recall this. perhaps i just forgot. Well, sorry. maybe check other hierarchy assets to see if you can find what you need

#

just deleting the folder in your Project will remove the pugin entirely

proven furnace
#

I will check settings at first anyway. Thanks for help regardless

elfin crow
#

i checked settings and did not see anything, but if you manage to get it to stay in play mode, please let me know, as i very much want the same thing. too busy to troubleshoot ATM though

proven furnace
#

Sure

elfin crow
#

it looks like, in the end, i may have switched to a paid solution.

proven furnace
#

Paid solutions not an option for me since i'm a student with not a lot of free money and my project is just a way to kill time

karmic locust
#

up until recently.. when i decided i didn't need all the extra fluff..
https://paste.myst.rs/27hs5pj0

wrote one that works for what I want.. (it uses the icon at the top of the inspector as the icon it draws in the hiearachy)

added the main script to an Editor folder
and then i have a blank script just called HiearchyIcon.cs that I just add to the gameobject i want to have an icon.

the editor code probably isn't the greatest.. and I as of now I just check if the icon starts with a d_ and if it does I ignore it (most unitys default icons start w/ d_ for "default"

proven furnace
#

I will try it later but have a question. I just need to drop csharp file to editor folder?

elfin crow
#

an Editor Script has to go in a Folder named Editor yes. there can be many Editor Folders in sub folders, etc

#

assets\Editor\TheScript.cs fine.
assets\SomeFolder\SomeOtherFolder\Editor\TheScript.cs fine

#

etc @proven furnace

proven furnace
#

See, thank u

proven furnace
#

For some reasons it doesnt working. I've added HiearchyIconEditor.cs to main Editor folder and made HiearchyIcon.cs in assets

karmic locust
#

tbh i haven't even tested it on prefabs.. let me check and see if thats not the issue

#

nope, thats not the issue.. weird

proven furnace
#

Dont remember if i saw any. I've tried it on canvas too
Will see if it throw any errors when i'll come back to computer

karmic locust
#

no worries.. I have a version that doesn't use the extra HiearchyIcon.cs script

#

but its probably a bit more performance heavy.. but i can share that one too if u want to try it

proven furnace
#

I can just delete it from assets when i will try to build it so yeah, why not try it too

karmic locust
karmic locust
#

best of luck 🍀 I'm barely able to code Editor stuff myself.. soo I'm just gonna hope it works. b/c i doubt i'll be able to help troubleshoot..

proven furnace
#

Even if it wouldn't work, thank u for help regardless

karmic locust
#

some icons wont show.. (typically the ones that start with d_ that was my cheeky way to stop the default Unity icon from showing on all of em

#

but if u want u can look at teh code and change that urself if its something u want..
i tried to make as many comments as possible

proven furnace
#

I can just drop custom icons if there wouldnt be enough of default color markers

karmic locust
#

ya, thast what i use.. i made my own for GameManager Input SaveSystem etc

#

anyway.. good luck mate 👍

proven furnace
#

Likewise

karmic locust
#

check out how i spelt Hierarchy

#

its a simple Mispelling mistake...

#

👉 in ur Example u have HiearchyIcon.cs and I have HierarchyIcon.cs

#

so.. go into the Editor script and change the if() conditional.. or just change the name of the script.. and it should work for ya 👍

#

dont know why i didnt catch that earlier

proven furnace
#

Will try it later

karmic locust
#

words are hard sometimes 🤣

proven furnace
#

It work, moved script from main Editor folder to project subfolder. Changing name didnt helped but i think i will stay with 2nd version of scripts bc i can easily remove it from assets

karmic locust
proven furnace
#

Already did

karmic locust
#

wouldnt want two scripts searching thru the hiearchy