D
D
Deezalir2022-04-16 18:03:41
2D
Deezalir, 2022-04-16 18:03:41

(C# unity) Buttons move when importing to android, what should I do?

In the unit, everything shows fine, the buttons are on the edges, there is a background. 625ada7f1e46d538252227.png
When I start the game, I see this:
625adac916530666620129.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima Magas, 2022-04-17
@White_Night

The fact is that you didn’t set up the canvas for different types of screens, because you tested the game on your computer and launched the finished build on the phone where the screen extension is different, then everything “broke” for you.
I highly recommend learning about canvas and its UI scaling system.

D
dyzg, 2022-04-17
@dyzg

Look, go to your Canvas, there will be Canvas scaler / Canvas UI scaler and select Scale screen with size there. The problem must be solved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question