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
4
Question by Brightsi · Mar 10, 2013 at 10:00 PM · animationanimatormecanimstatestate machine

How do I make the transition between two states in the "Animator" happen instantly?

Hello everyone. I am trying to make a transition from one state to another in the "Animator" state machine happen instantly. By default, the animator seems to finish the current animation first before switching to a new state. Since I am using looping animations, this causes new animations to start with a delay of a few seconds, depending on the lenght of the previous animation, which is inappropriate for some animations, like idling->walking->idling, as it causes the character to keep walking even when it's not moving anymore, or move before the walking animation actually starts. I've tried to find a solution but I couldn't find an option or script function that would do this. Does anyone know what I would need to do so the transitions work instantly? Thanks in advance!

Also, although I guess it's unlikely that it's possible, is there a way to insert "points" into an animation where it can stop and start the transition to the next state? Like walking->idling when either foot is touching the ground?

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 Brad1011 · Nov 07, 2013 at 10:43 PM 0
Share

I'm having the same problem, did you ever find a solution? I have an idle animation that takes 2 seconds to loop, so after I start moving it takes up to 2 seconds to start the walking animation.

avatar image Paparakas · Nov 07, 2013 at 11:11 PM 0
Share

@Brad1011 Try $$anonymous$$aking a transition from Any State > IsWalking Animation. $$anonymous$$ake the condition something like if isWalking = true. Set isWalking to true and it should immediately start the Walking animation. You might have to set transitions to non atomic.

3 Replies

· Add your reply
  • Sort: 
avatar image
14

Answer by Hassan-Kanso · Oct 11, 2015 at 03:09 PM

  1. Select the character you want to edit, and open Animator window.

  2. Select the Transition you want to remove its delay.

  3. UNCHECK "Has Exit Time" checkbox.

  4. do it for every transition you want to change and it should work :)

alt text

I think it must be unchecked by default but yeah nothing is perfect


nodelay.png (146.7 kB)
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 Fearleas · Jan 05, 2016 at 05:26 PM 0
Share

AlSO give "Transition Duration" a value of 0. Else you still will see a little bit of delay.

avatar image
-1

Answer by tanoshimi · Nov 07, 2013 at 11:14 PM

In the transition inspector, uncheck atomic, and drag the blending time between the two states to zero.

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 Brad1011 · Nov 08, 2013 at 12:29 AM

I ended up finding the answer to my own question here: http://answers.unity3d.com/questions/571005/animator-transition-in-middle-of-animation.html

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

15 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

Related Questions

How to generate Mecanim Sub-state namehash? 6 Answers

Not able to use a Vector as a condition in Mecanim? 2 Answers

How to get fileID information so i can just edit Mecanim Animator through script? 2 Answers

Easier way of creating transitions in the animator? 1 Answer

Animator.Play not working when in Sub-State Machine 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