- Home /
Controlling an animation by dragging a gameObject with the mouse
Hi all and a very happy new Year!!
I've got stuck with a problem, perhabs someone could give me a hint ;)
I am trying to control an Animation from Unity by dragging a gameObject. If there would be two cubes (Cube A and Cube B). Cube A has an animation on it (probably moving some units along the y Axis). I would like to controll that animation with my Cube B, which can be dragged with the mouse.
So if i would drag the cubeB ,let's say to the right, the animation on cubeA plays while i am dragging. So cubeB controls the Keyframe of CubeA.
I am coding in c# by the way. (and i am still learning it ;))
I hope it is somewaht clear what i am trying to achieve... English isn't my native language ( so there might be some errors ;))
Your answer
Follow this Question
Related Questions
How to move a GameObject with an animation 2 Answers
Moving gameobject with animation according to my script 0 Answers
Drag-able animation timeline 2 Answers