Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by Nick4 · Jun 22, 2015 at 06:17 PM · animationanimatoranimator controller

Animator's animation doesn't stop immediately.

Hey guys, I've always worked on puzzle games before so I have no experience with the animator in Unity. So I followed Mike's "2D Character Controllers" tutorial to animate a 2D character. It was all working well until I stopped running my character. When I stop walking the running animation does not stop right after that. It waits for its completion to go back to idle state.. which by the way has no animation and I don't know if that's the reason it doesn't stop immediately because Mike's character had an animation for idle state. Thanks a bunch.

Comment
Add comment · Show 2
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 Johnz1234 · Jun 22, 2015 at 06:40 PM 0
Share

Un check the loop in your animation

avatar image Nick4 · Jun 22, 2015 at 06:55 PM 0
Share

Nope, it's a running animation therefore it must have loop.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by DiegoSLTS · Jun 22, 2015 at 07:21 PM

Show us the conditions you use for the transition from Walking to Idle. You might be using a parameter (a bool maybe?) and the Exit Time or a transition duration. Unity waits until the exit time passes before checking the other conditions, and waits the "transition duration" before changing the animation (at least in 2D animations, in 3D it does a blend between both).

Read this: http://docs.unity3d.com/Manual/class-Transition.html

And look at this tutorial for an example: https://unity3d.com/learn/tutorials/projects/2d-roguelike/player-animator

Comment
Add comment · Show 1 · Share
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 Nick4 · Jun 22, 2015 at 08:09 PM 0
Share

Thanks for the answer, I have a speed variable which is a type of float. When it's greater than 0.01, I start running, when it's less than 0.01, I stop running. I have unchecked "Fixed Duration" and set "Transition Duration" to 0. Although it has helped me a little, I still have a bit of lag. Any ideas?

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.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to handle multiple animation variants 1 Answer

Animator parameter does not pick the value of the animation curve with the same name 2 Answers

Wrap Mode in animator not working properly 0 Answers

Display additional animation on top of other animations 0 Answers

Animator Override Controller changed at runtime doesn't always play the animations correctly 1 Answer


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