2
\$\begingroup\$

I am very confused about Unity's UI system.

This is how my inventory menu looks in the Editor:

In Editor

And this is the view in game:

In Game

Settings

Settings

Can someone please explain why this happens?

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

I finally solved it, I had to change the rect transform of Panel_Slots to stretch height:

enter image description here

\$\endgroup\$
2
  • 3
    \$\begingroup\$ Most Unity UI layout problems are caused by designing in one resolution and playing in another. When I design UIs in Unity I usually do that by detaching the scene window and constantly changing its size around after every change. That way I notice quite quickly if some part of the layout doesn't respond to different resolutions. \$\endgroup\$ Commented Nov 6, 2017 at 9:15
  • \$\begingroup\$ I think the answer to all problems is simply to use stretch everytime. \$\endgroup\$ Commented Nov 6, 2017 at 9:37

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.