Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Playing animation with mouse drag

Discussion in 'Scripting' started by act.goncalves, Nov 28, 2015.

  1. act.goncalves

    act.goncalves

    Joined:
    Nov 27, 2015
    Posts:
    1
    Hi! I'm using Unity for the first time for a school project and I'm having some difficulties. I've created an animated object in Cinema 4D and imported it to Unity. I need to create a C# script that allows me to play the animation when I click and drag the mouse up, and rewind it when I drag the mouse down. Does anyone has any ideas on how to make it?

    Thank a lot