0
\$\begingroup\$

Is it possible to arrange alternate children separately in a vertical layout group?

I want to arrange the child elements so that one is aligned to the left, the next one is aligned to the right, and so on, alternating like this:

Alternating arrangement

How can I achieve this layout?

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Why not use 2 vertical groups and add enough spacing between elements to get that effect? \$\endgroup\$
    – Zibelas
    Commented Aug 15, 2023 at 6:15

1 Answer 1

1
\$\begingroup\$

Okay, my solution is to create a parent object and set these elements as children. Then, I anchor one child element to the right and the other to the left. This fixed my problem, but I'm not sure if it's best practice.

\$\endgroup\$
1
  • 3
    \$\begingroup\$ If it works for you game, it is good enough. Easy solutions and especially solutions that you understand what/ why/ how they are working are better than a perfected solution where you understand nothing \$\endgroup\$
    – Zibelas
    Commented Aug 15, 2023 at 7:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .