- Home /
Question by
RMihai · Nov 24, 2015 at 03:56 PM ·
uidrag-and-drop
Make an UI elements stays in its parent Area
I have a Image and it is a child of a Panel. I've implemented a drag and drop system so I can move the Image with the mouse. Now what I want is to place the Image anywhere inside the Panel's area. If the Image is moving outside the Panel's area, it should go back to its start position. How can I achieve this?
Comment
Your answer
Follow this Question
Related Questions
Possible to drag items across tabs onto the same frame? 1 Answer
What method should I use for making a drag 'n drop based game? 1 Answer
Detect if UI element is over Gameobject 2 Answers
Drag object and position(snap) on another similar one using Raycasting? 0 Answers
Terminate drag while mouse is still down 0 Answers