• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Wilfreed · Oct 20, 2014 at 10:20 AM · mecanimtransitioneasing

Mecanim : smooth transition (ease-in/out) between states

Hi,

I'm fine tuning the state transitions of my animated character in Mecanim, and I'm struggling to have a smooth blend from one state to another (ease-in/ease-out), so far it plays only linear transition.

Is there a way to do this with Mecanim?

I didn't find anything relevant when googling for a Mecanim specific solution (I hope I didn't miss something trivial). I'd like to make sure I'm not missing a clean way of achieving this before diving into cumbersome solutions.

Thanks for your help

Wil

Comment
Add comment · Show 12
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Wilfreed · Oct 20, 2014 at 10:18 AM 0
Share

Forget about it, found another solution to my issue

avatar image dadude123 · Dec 12, 2014 at 04:43 PM 0
Share

I want the same thing. How did you solve your problem? In my example I use a door with Animation states "Open" and "Closed". As you said the crossfade only works in a linear fashion. I thought about adding a "Opening" and "Closing" animation. Is that how you solved it?

avatar image Wilfreed · Dec 21, 2014 at 02:25 AM 0
Share

Hi Dadude123, yes I went for adding some animation transitions to my character animations ins$$anonymous$$d of relying only on the automatic transitions.

Note: I reactivate my post, because I am still interested in knowing how to change the blend type

avatar image meat5000 ♦ · Dec 21, 2014 at 02:51 AM 0
Share

Simply make a Blend Tree and change Blend Type to one with more parameters. Play with the graph.

You can also change move the sliders after clicking on a Transition to change the duration of the transition itself.

avatar image Wilfreed · Dec 21, 2014 at 03:05 AM 0
Share

Hi meat5000, can you give more details about the blend type? I can't see any field or option in the inspector which allows me to change that blend type.

avatar image meat5000 ♦ · Dec 21, 2014 at 03:13 AM 0
Share

I know :) I could see it even though it was deleted.

Create a Blend Tree. Click it and in the inspector you will notice a drop down list.

EDIT: DOUBLE CLIC$$anonymous$$ the Blend tree

avatar image Wilfreed · Dec 21, 2014 at 04:12 AM 0
Share

I see it now, thanks for the tips $$anonymous$$eat5000 !

I'm going try it out, but this doesn't seem to solve the issue of not being able to smooth in/out a transition between states (still look like the transitions will be linear between 2 states), is there something I am missing?

avatar image meat5000 ♦ · Dec 21, 2014 at 04:18 AM 0
Share

I had something similar when trying to blend movements once. Linearity comes from having 1 parameter. If you have 2 parameters you can make a slightly more complex transition. You can also make the limits larger than they need be. Play around see what you can do with it.

In a 2 state transition without the Blend Tree it appears that the best you can do it to modify the Sliders to make the transitions longer.

$$anonymous$$ost the time, these things would be taken into account when creating your animations :)

avatar image Wilfreed · Dec 21, 2014 at 04:23 AM 0
Share

ok thanks, I'll play around with these to see how it works. Thanks for your help !

avatar image pixxelbob · Feb 01, 2015 at 11:48 AM 0
Share

@Wilfreed did you ever find out how to apply easing?

avatar image Wilfreed · Feb 04, 2015 at 04:36 PM 0
Share

@pixxelbob : unfortunately not. Seems like having proper easing between 2 states just isn't allowed, you'll probably need to find workarounds to make it work (like transition animations).

avatar image pixxelbob · Feb 04, 2015 at 04:42 PM 0
Share

@Willfreed, thanks for the reply, that's a real shame hopefully unity will add that in the near future. Linear animations are not good enough for making sexy UX with GUI objects.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to fluently transition into an animation state? 0 Answers

Copy/Paste Mecanim Transitions 6 Answers

Mecanim opposite transitions. Easy made hard? 1 Answer

Mecanim - How to use "Exit Time" for a state that uses negative speed (anim playing backwards)? 2 Answers

Why, when I delete transitions from the Animator State Machine, do I get a null reference exception? 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges