- Home /
Restrict 2d movement on a zoomed UI image
Hi everyone.
I implemented zooming functionality that change the scale of an Image component to simulate zooming in and out since i can't use orthographic value on the new UI components.
Anyway i need to know how to restrict movement inside the map (Image component), i need an equation that calculates the min,max borders in x and y Axis to restrict the movement inside the original map size.
Thanks in advance.
Your answer
Follow this Question
Related Questions
How to zoom and pan a gameobject not the whole scene 0 Answers
How to zoom and pan when you "pinch/swipe across screen" (iPhone) 5 Answers
How to accurately zoom (not dolly) and pan Camera to mouse click position 1 Answer
Pinch and Zoom functionality on Canvas UI Images 7 Answers
Pinch Zoom and Pan while not calling other functions 1 Answer