I know this is possible, but i cant figure it out. I want to click on a button to select it, and whilst it's selected, be able to move it on the Y axis. In this code example, i'm able to move it when the left button is held down, but that's regardless of it being selected or not. i.e. it moves whenever the left mouse button is held down, which is expected.
Hi guys,
I know this is possible, but i cant figure it out. I want to click on a button to select it, and whilst it's selected, be able to move it on the Y axis. In this code example, i'm able to move it when the left button is held down, but that's regardless of it being selected or not. i.e. it moves whenever the left mouse button is held down, which is expected.
How do i go about moving the button only when it's selected?
Many Thanks,