Y
Y
yraiv2020-05-03 11:20:12
Unity
yraiv, 2020-05-03 11:20:12

Why does panel change its size after the app is loaded on the phone?

My game has multiple Panel and canvas in one scene. When I run it on a computer with the right resolution, then everything is fine, like, nothing goes beyond the scope, everything is within the boundaries. When I do it through unity remote, there are no problems either, but when I completely make the apk file and install it, for some reason the panel starts to occupy about 3/4 of the screen and is in the center. Why is this happening, if before that all the time there were no such failures?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OblivionGM, 2020-05-03
@yraiv

UI elements located on the Canvas have bindings to work with different resolutions.
In order for everything to be displayed normally, you need to configure them correctly, here is the official documentation:
https://docs.unity3d.com/ru/current/Manual/HOWTO-U...
I also advise you to look at third-party resources for better understanding

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question