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
0
Question by Antonino10 · May 11, 2017 at 02:12 PM · animatormechanim

Unity animations - automatic transitions available in Unity 5.5.0f3 Animator?

Hi everybody,

I have a very little experience in Unity and I'm working with a Unity model provided of 4 animations

clips

I wanted to switch among them with the following state machine

states

I followed different tutorials like this excellent one from which I took the general organization of the script and where the lack of a condition or exit time doesn't look like an issue [evident from minutes 5:45-6:20]

When I finish my Attack animation I would like to have the idle state back again as in the linked tutorial but in this Unity version [5.5.0f3] looks like "Transition needs at least one condition or an exit time to be valid, otherwise it will be ignored" and the animation gets stuck before exiting Attack. This is evident from the screenshot and as you can see there are no conditions to make the Attack->idle transition

I don't want to overcomplicate the code for such a stupid thing and I would like to avoid to hardcode animations length. Moreover I would like to use Mechanim to handle this thing instead of the script

---> Is there a way to achieve the same effect shown on YouTube in Unity 5.5.0f3?

Thanks in advance to those who will try to help

clips.png (153.9 kB)
unity-stack.png (185.9 kB)
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Baste · May 12, 2017 at 03:33 PM

Transitions needs to have some kind of condition to actually trigger. If you want to automatically transition back to idle from attack after playing the animation, the correct way to do that is to use the exit time. "Has exit time" is horribly named, it really means "will exit automatically after this amount of time has passed".

Your tutorial works in 5:45 through 6:20 as Unity automatically turns "Has Exit Time" on as you create new transitions.

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 Antonino10 · May 15, 2017 at 12:12 AM 0
Share

Thanks @Baste, you are right!

I checked again the tutorial and I can see later onin the video the "has exit time" automatically flagged

Thanks again for your help and have a good day, Antonino

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Whever I try to change an Animator value in my script, it becomes incredibly laggy [C#] 1 Answer

Mecanim animation 1 Answer

Animator Window Showing Grey 1 Answer

Interrupt shoot animation (in Animator) to play again every time the player shoots 0 Answers

How to Control animator of child objects 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