M
M
MeRRFiS2020-07-17 19:16:37
Unity
MeRRFiS, 2020-07-17 19:16:37

How to change the coordinates when changing the screen resolution?

I place all objects in the canvas, so that when the screen resolution changes, the objects adapt to it. However, when the object is moved to those coordinates that, at a resolution of 800 × 480, are well suited, then when it is increased, the coordinates remain the same and the object is already moving to the right place. How to make it so that when the resolution changes, the final coordinates change?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2020-07-17
@MeRRFiS

You don't have to place all the objects on the canvas. Canvas is more for UI. And the movement of objects on it is very expensive in terms of performance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question