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
9
Question by Snailien · Feb 20, 2016 at 10:09 AM · animator

Instant animation transition

So, yeah, I've lost like two hours trying to figure out how to make instant transitions between animations. I know unchecking Has Exit Time should do the trick, but for some reason it doesn't. I run the game, and looked at the animator window, and you can clearly see that "Run" animation always plays till the end before going to "Idle", even though there is no input. In other words, even when the character stands still, the "Run" animation plays till the end and only then it transition back to idle. Even stranger is that the opposite, for some reason, works rather nice (Idle to Run). So, I have 0 idea why this is happening, and while I wait for answers here, I'll just start a new project and hope it was a bug.

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 KokodokoGames · Aug 22, 2016 at 12:57 PM 0
Share

Did you ever find the answer? I have the same problem. Animations always run their full course before reacting to a change in values. I have the transition time set to 0 and I unchecked 'has exit time'. In my console I can see that the value DOES change so it really is the animation that insists on playing all keyframes before exiting.

avatar image Snailien KokodokoGames · Aug 22, 2016 at 02:36 PM 0
Share

That's odd. $$anonymous$$y problem was that I used Input.GetAxis ins$$anonymous$$d of GetAxisRaw - it just looked like it was looping the whole thing, ins$$anonymous$$d, it just needed time to get back to zero. Haven't messed with animations a lot since then, so, sadly, I can't give you any useful advice. :(

avatar image Ishidres · Mar 25, 2020 at 03:39 PM 0
Share

Thanks! I wanted to achieve the same and disabling "Has Exit Time" already solved this for me. :)

4 Replies

· Add your reply
  • Sort: 
avatar image
13

Answer by Thaun_ · Jan 05, 2018 at 04:58 PM

Use these settings:

  • Has Exit Time: False

  • Fixed Duration: False

  • Transition Duration: 0

  • Transition Offset: 0

ChangeThese

Comment
Add comment · Show 2 · 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 maxpleaner · Feb 06, 2018 at 06:18 AM 0
Share

Thank you! In addition I had to disable "Can Transition To Self" or else my animations wouldn't play.

avatar image RickshawDerpyDerp · Jul 15, 2019 at 02:55 PM 0
Share

This messes up the initial animation, not interrupts it.

avatar image
1

Answer by meat5000 · Feb 20, 2016 at 10:09 AM

I'll just start a new project

How can this ever be the answer? :D

Click on the transition arrow and note the Blue arrow sliders above the blue bar. Adjust them so they are close together, thus making the transition small.

Comment
Add comment · Show 5 · 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 Snailien · Feb 20, 2016 at 11:26 PM 0
Share

Well, cuz I suspect it might be my computer that is bugging. :D Yeah, I've done that, and I still get a quarter of a second delay. Strange thing is (and maybe hopefully useful) that if I press 'd' for just a second (or in a quick transition), it works fine. But if I move longer (pressing key longer), then the problem appears. Again, maybe, it's something with my computer or I don't know... It isn't that big of a deal, I guess, but it's annoying, because everything else works fine. :D

avatar image Snailien · Feb 28, 2016 at 03:52 AM 1
Share

Hey, I just wanted to let you know I found what was the problem. I was using GetAxis for input for movement, so I thought that maybe the problem was in the fact that it takes some time for the value to drop to zero, which would explain why Idle -> Run works well, but opposite is not (float speed, which I use for transitions rises above 0 as soon as input starts, but takes some time to reach 0 again afterwards). So, just simply using GetAxisRaw solved the problem and now works fine. :)

avatar image jorgecastillodp Snailien · Nov 24, 2018 at 01:45 AM 0
Share

holy crap. Duh! thanks !!

avatar image KokodokoGames · Aug 22, 2016 at 12:58 PM 0
Share

In my case, the transition time is 0 and I unchecked "has exit time", but the animation still plays all keyframes before switching to a different state.

avatar image RickshawDerpyDerp · Jul 15, 2019 at 02:59 PM 0
Share

What sliders, what bar?

avatar image
1

Answer by OfficialHermie · Apr 13, 2020 at 09:08 PM

If you simply want to test an animation by looping it endlessly, add the same animation to a animator twice. Then connect them. Click each connection, then use these settings:


HasExitTime = True (else, the transition only works if we use Parameters like IsWalking, which is not what I want in this case)

Exit Time = 1

FixedDuration = True

Transition Duration (s) = 0

Transition Offset = 0

Comment
Add comment · 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
0

Answer by $$anonymous$$ · Nov 24, 2018 at 03:00 AM

can't read your question, you should give a picture

Comment
Add comment · 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

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

13 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

Related Questions

2D Animation does not start 1 Answer

Jump animation anticipation 2 Answers

How to change animation's speed in C#? 2 Answers

Animator animation transition twitch at the start 1 Answer

How can i check if an animation is done?,How to check if an animation is done? 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