0
\$\begingroup\$

I am making a simple 4-player turn-based card game. At one point, a player can "open" his hand on the table. As the player does this, I want cards to be aligned in a way such that left side of each one is visible.

In my hand, the cards look like this.
enter image description here

When I carry them on the table, they look like this enter image description here

Not only the order is reversed, which I wouldn't mind, but also the cards are not visible now.

This is how the green area looks like in the Inspector
enter image description here

I don't want cards to change shape to fill the area, and I also don't want them to go outside the green area.

When I unselect Control Child Size, the cards are aligned just as I want, but now they are too spread out and outside the green area.

Is there a way to achieve the behavior that I want?

\$\endgroup\$
2
  • \$\begingroup\$ Found the bug. It is because negative spacing is larger than a card's width. \$\endgroup\$
    – padawan
    Jan 18, 2020 at 17:32
  • \$\begingroup\$ If you've solved your problem, please post your solution as an answer. :) \$\endgroup\$
    – DMGregory
    Jan 19, 2020 at 0:39

1 Answer 1

0
\$\begingroup\$

The problem with the configuration is the negative spacing. The negative spacing exceeds the width of a card, and the card slides all the way back to the left side as a result.

To fix it, the spacing should be set to a value which is greater than -50 units.

\$\endgroup\$

You must log in to answer this question.

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