- Home /
Question by
KingPaper · Apr 10, 2018 at 03:16 PM ·
2d game2d collision2d controller
Unity 2d - moving objects with the mouse
I am working on a 2d game where the player sorts a number of objects from a box into a timeline at the top of the screen. I'm not sure how I can get the objects that I have placed in the game to react to the mouse. I need the sprites to attach to the mouse on a click and detach back to their original position or into the Timeline UI element if they are within it when the mouse is clicked again.
Comment
Your answer
Follow this Question
Related Questions
Projectiles aren't hitting enemies 1 Answer
Tilemap Collider 2D not generating colliders...,Tilemap Colliders won't generate.... 0 Answers
OnCollisionEnter2D not triggered 3 Answers
,Unity Spieler Gravity funktioniert nicht? 1 Answer
Collision and layering for 2D top down project with hand drawn backgrounds 0 Answers