Create our own UI Auto Layout
I have a UI hierarchy of elements, and they're mostly round buttons. Since the number of elements in the hierarchy will be determined and created and attached to UI elements by script, I don't know how many there'll be.
I'd like to have the children elements "orbit" around the parent. Not necessarily moving, but at least spread out evenly, with the first being below, and then in circle. (I'm also imagining if there's too many to fill a circle, they'll spread out alternating on two concentric circles for example).
I haven't seen a default layout in Unity that'd do just that, so is there a way to create one, and what would be the best approach ?
Comment