Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by Valtaroth · May 11, 2016 at 03:23 PM · animationmecanimanimation controlleranimationstate

Animation state not transitioning at 100%

Hi everyone,

I have recently run into a very annoying problem with Unity's mecanim system I cannot seem to figure out on my own.

I have an animator setup with a bunch of states. Some of the states have no transition conditions and are instead set to have an exit time of above 1 (e.g. 5). 95% of the time this works beautifully. The state loops multiple times, then transitions to the next state. The remaining 5% of the time, the state simply gets stuck at 100% (a normalized time of 1) and does not transition although the only transition it has does not have any conditions.

Did anyone else run into this issue and if so, is there a way to fix it? I don't really see a way to neither detect if the state got stuck nor trigger the transition manually since it has no conditions I can force. Any help is very much appreciated!

Sincerely, Valtaroth

EDIT: As requested I have attached screenshots of the animator as it is stuck and the state's only transition: The stuck animator. The state's only transition.

This particular transition leads to a blendtree but I have other states which transition to simple states and get stuck the same way. The similarities are the exit time above 1 and a single transition with no condition. I have never seen it happen with exit times equal to or below 1, but I require higher exit times in certain cases.

Hopefully this helps to shine more light on the issue.

animator.png (18.7 kB)
transition.png (18.3 kB)
Comment
Add comment · Show 3
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 incorrect · May 11, 2016 at 10:49 PM 0
Share

Post some screenshots please.

avatar image Valtaroth · May 12, 2016 at 07:37 AM 0
Share

Because I just realized this might be the next question: no, it is not continuously transitioning into the state from AnyState, it only does so once. There are my parameters tied to the transition from AnyState which are only triggered once, afterwards the state simply remains like shown above.

avatar image george_playbite · May 30, 2019 at 06:26 PM 0
Share

Did you end up figuring this out???

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by FortisVenaliter · May 20, 2016 at 02:13 PM

Look at the graph there in the bottom of your second screenshot. I believe the issue is that the old clip ends far before the new clip begins. What is it supposed to do in that gap with no animation? You need to move the animations so they meet or overlap. Or set one of them to looped, so it will be continuous, and have a point of reference for the transition.

Exit time of 8 means 'do this after the animation has played 8 times'. But if it's not looping, it will get stuck after running the first.

Comment
Add comment · Show 4 · 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 Valtaroth · May 21, 2016 at 05:56 AM 0
Share

The animation is actually set to loop and 9 out of 10 times it will work like you described, but what you see here is the 10th time when it just does not want to behave that way. Do you know of any reason why that could be the case?

avatar image FortisVenaliter Valtaroth · May 21, 2016 at 03:03 PM 1
Share

If it was set to loop, it would represent that in the graph. That animation graph shows that it is not going to loop.

avatar image Valtaroth FortisVenaliter · May 23, 2016 at 06:48 AM 0
Share

I'm sorry, you are right. I re-checked the clip's settings and it is indeed not set to loop. But if that was the issue's cause why would it be working most of the time? Shouldn't if fail every time then?

Show more comments

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

84 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 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 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 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

Character animation position 1 Answer

How to Change the Motion of an Animation State in an Animator Controller at Run-Time? 1 Answer

Unity 5 - Model invisible with Mecanim in Edit mode? 1 Answer

Why does this animator appear to occupy two states, but report only one? 0 Answers

Accessing AnimationState in Animator 0 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