- Home /
If you change the pivot while increasing the size, please do not move.,c#
UI zoom-in and zoom-out functions are being implemented.
I hope the first part I touched will zoom in.
I am using a script to change the first touchpoint to the pivot of the UI.
I did the moves that I wanted, but the problem is...
If you change the pivot while the size is increased (=zoom),
the UI moves like teleporting, so it's not natural.
In my opinion, as I moved while changing the pivot,
I can move again, but I can't express it in the Inspector window, so I don't know how to get it.
I'd appreciate your help.
P.S. Please understand that the sentence may be strange
because I am not good at English and I am asking questions through a translator.
,
Your answer
![](https://koobas.hobune.stream/wayback/20220613054329im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Trying to place an UI Canvas Image next to another UI Image 1 Answer
Changing Rect Position in code causes object to disappear? (C#) 0 Answers
How to change the Top and Bottom (rect.yMin and yMax) properties of a rectTransform, in a script? 2 Answers