Hi there ![]()
I hope you guys can help me out with the following problem:
As the rendering order of the UI is determined by the hierarchy I want to read the specific hierarchyy order of UI elements and compare them to each other. The reason being to determine which object is more ‘down’ in the hierarchy and should therefore render on top.
The canvas I use is quite complex and a simple ‘GetSiblingIndex’ won’t do as I want to compare objects with different parents and complex nesting that however share the same root canvas.
Is there any convenient function that is already built-in into unity that let’s me do that? Or: Do you have an idea regarding how I could compare the order in the hierarchy for nested objects?
Many thanks in adance ![]()