#Hierarchy Customization
1 messages · Page 1 of 1 (latest)
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
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
I will check settings at first anyway. Thanks for help regardless
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
Sure
it looks like, in the end, i may have switched to a paid solution.
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
https://github.com/WooshiiDev/HierarchyDecorator?tab=readme-ov-file
this is one I've used in the past..
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"
I will try it later but have a question. I just need to drop csharp file to editor folder?
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
See, thank u
For some reasons it doesnt working. I've added HiearchyIconEditor.cs to main Editor folder and made HiearchyIcon.cs in assets
weird.. no errors or anything in the console?
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
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
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
I can just delete it from assets when i will try to build it so yeah, why not try it too
https://paste.myst.rs/4udz5x52
just make sure to remove that component u already have from ur gameobjects
delete both the scripts..
and then this (1) script can go in ur Editor folder
a powerful website for storing and sharing text and code snippets. completely free and open source.
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..
Even if it wouldn't work, thank u for help regardless
some icons wont show.. (typically the ones that start with d_ that was my cheeky way to stop the default
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
I can just drop custom icons if there wouldnt be enough of default color markers
ya, thast what i use.. i made my own for GameManager Input SaveSystem etc
anyway.. good luck mate 👍
Likewise
OH! I Think i Figured it out
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
Will try it later
words are hard sometimes 🤣
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
just make sure to delete those extra ones..
Already did
wouldnt want two scripts searching thru the hiearchy