Question by
sunandnoon11 · May 14, 2021 at 09:51 AM ·
c#unity 5image
adjust image size with mouse
There is one button and one background image. When dragging a button, I want to increase and decrease the background image height.
I've got the buttons moving like this. code : Vector3 mousePosition = new Vector3(btn.position.x, eventData.position.y, 0); btn.position = mousePosition;
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613033722im_/https://answers.unity.com/themes/thub/images/avi.jpg)