Z
Z
Zefirot2021-05-25 10:44:11
Unity
Zefirot, 2021-05-25 10:44:11

How to zoom in/zoom out and move camera from UI?

How to zoom in/zoom out and move the camera with pictures (not sprites)?
I tried to put a sprite on the canvas and change the size of the camera, everything decreases and increases, the same applies to movement, I change the position and objects of the sprite type "move" on the screen.
But instead of sprites, I wanted to make UI elements objects containing Image / Text, the same actions with the camera no longer work on them, how to make an adjustment?

The essence is to do something like a map on which objects are located (Image / Text), this map can be moved in different directions and zoomed.

Ps - Why Image/Text and not sprites? it’s easier to overlay text, it’s easier to set sizes, etc., if this doesn’t work out, then tell me how to do what was planned correctly, if possible, examples of implementation ...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question