Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Proper method to import animations for Mecanim

Discussion in 'Asset Importing & Exporting' started by dre38w, May 4, 2016.

  1. dre38w

    dre38w

    Joined:
    Nov 18, 2009
    Posts:
    137
    Looking at tutorials, I see multiple imported files of the same model for each individual animation. Is this the proper way to import animations for Mecanim?

    Also, if anyone already has a link, can you send me a tutorial on setting up a rig to be Mecanim-ready? I shall continue my search for that though.

    Thanks!
    -Drew
     
  2. _GimbalLock_

    _GimbalLock_

    Joined:
    Feb 26, 2013
    Posts:
    137
    Try out this tutorial. For importing animations you're fine the way your doing it. Each file should have an animation clip which you can use... The how depends on if your using mecanim, generic, etc...

    The other option is to have all you animations in a single maya, blender, etc scene file. When you important that file you'll be able to split the animation up on the imported fbx by enter start/end frames numbers.

    There are probably other options but those are the two I've used in the past.
     
  3. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
  4. dre38w

    dre38w

    Joined:
    Nov 18, 2009
    Posts:
    137
    I've been using generic but I'm trying to migrate over to Mecanim before the animations are finalized. Hard coding a bunch of animation transitions is becoming a convoluted mess. Mecanim seems to fix the transition issue as well as being able to do something in 15 minutes that can take me an hour to code. haha

    Anyway, so you can use Mecanim by importing a file for each animation as well as a singular file and then splitting the animations?
     
  5. dre38w

    dre38w

    Joined:
    Nov 18, 2009
    Posts:
    137
  6. dre38w

    dre38w

    Joined:
    Nov 18, 2009
    Posts:
    137
    I plan on testing the waters anyway. So my main question probably would have been solved through simple trial and error. lol I feel like the more important question for me to ask was how to rig and set up animations to import for Mecanim. The link theANIMATOR2b provided put me on a good leg.

    Thanks guys.
     
    _GimbalLock_ and theANMATOR2b like this.
  7. _GimbalLock_

    _GimbalLock_

    Joined:
    Feb 26, 2013
    Posts:
    137
    In the end once you map the character once, Unity saves that in an avatar file. You can apply that same mapping to all your other animations simply by selecting them, go to rig and apply that avatar files. Probably covered in what theANIMATOR2b posted.

    Once you go through the motions a few times you'll find the workflow you like best.
     
  8. dre38w

    dre38w

    Joined:
    Nov 18, 2009
    Posts:
    137
    Definitely. Always an ongoing ever-improving process.

    Thanks.
     
    _GimbalLock_ likes this.