Everytime I add value to height.. the 'top-most' area is causing to mess-up the y.position of the gameObject.
How to achieve this kind of approach/behavior via script that makes the 'top-most' area stay?
Thank you in advance. Best regards.
CodePudding user response:
The default anchoredPosition
is in the center by default. You'll need to set it to the upper left corner. There is a sample code shown