- Home /
I have some question about custom Hierarchy
I watched this video https://www.youtube.com/watch?v=pdDrY8Mc2lU and I can change text color in hierarchy already. (Draw rect to hide original text and Draw new Text of LabelField)
but I have some problem about mouse hover and mouse selection
When mouse down on custom item but when mouse up, it's ok (Because the script change background color to blue)
When I click another item but when mouse up, it's ok (Because Selection changed)
So, Are there other way to custom? or Can I get callback about Mouse Over/Up/Down or Item position or not (If I can get the callback I think I can adept it)
hierarchyWindowItemOnGUI this event can tell me only instance id and selectionRect
What I have to know before I make custom Hierarchy, I know about Custom Inspector and Custom Window Editor (Both are not my problem) but in this problem I can't get any callback (or I don't know)
Solution in my mine: if I can get item rect or position of Item, I will check the rect if it contain mouse position, I will change background color. but I dont know the way to get position of item to compare mouse position (selectionRect is only size of item)
Sorry for my English. That is not my native language.
And Thank you.