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
1
Question by kacyesp · Sep 09, 2014 at 07:30 PM · animatortransitionanmation

What can interrupt a non-atomic transition in the animator?

In the documentation for animation transitions, it says if the atomic checkbox is checked, then the transition cannot be interrupted.

That said, I have 2 questions:

  1. What can interrupt a transition?

  2. If I make a transition atomic, do the actions that would have interrupted the transition just get discarded as if they never happened?

I have no idea when I should have the atomic checkbox checked, and it's because I don't know the answers to these 2 questions.

Here's a link to the docs for convenience: http://docs.unity3d.com/Manual/class-Transition.html

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

3 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by kacyesp · Sep 10, 2014 at 07:39 PM

After running into a 2 hour bug, I just discovered the answer to my questions.

Here's how that atomic button works.

Say I have 3 states: A, B, and C where A has a transition to B and B has a transition to C. So essentially I just have A -> B -> C.

If the transition from A to B is atomic, and in the middle of the transition from A to B the transition from B to C becomes true, then the transition to C will NOT happen. (This was my bug.)

If the transition from A to B is NOT atomic, and in the middle of the transition from A to B the transition from B to C becomes true, then we will happily transition to C.

In other words, if a transition in NOT atomic, you can consider yourself to already be at the state your transitioning to. If a transition is atomic, then all the transitions leaving the state you're transitioning to will be ignored because you're not completely at that state yet.

What can interrupt a transition?

Any transition leaving the state you're currently transitioning to.

If I make a transition atomic, do the actions that would have interrupted the transition just get discarded as if they never happened?

Yes, it's like they never happened.

Comment
Add comment · Show 3 · 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 hu_amao · Oct 04, 2014 at 03:47 AM 0
Share

"in the middle of the transition from A to B", the current state is still A, so the transition B to C could not be satisfied and happen.

avatar image HappyMoo · Feb 08, 2015 at 11:20 AM 0
Share

true, this is especially useful with multiple layers and transitions from any state etc. Like if you have shooting and getting_hit on a new layer above your normal walking and jumping etc. And you can get hit and shoot any time and the transition can be longer than your shoot rate, you don't want to leave out getting hit animations and shooting animation

avatar image meat5000 ♦ · Feb 08, 2015 at 11:29 AM 0
Share

So what happens if A to B is atomic but also has Exit Time parameter at say, 0.5? Does C transition, then?

avatar image
0

Answer by hu_amao · Oct 04, 2014 at 03:48 AM

1.What can interrupt a transition?

A: other transition from same state with higher priority.

2.If I make a transition atomic, do the actions that would have interrupted the transition just get discarded as if they never happened?

A: Yes.

// -- Explain below -- //

A state could contains several transitions, during the transition from this state, another transition from same state with higher priority could be satisfied and happen.

I tried a demo and it works: I have 3 states: A, B, C and 2 transition A->B, A->C, the transition A->C is higher priority than the transition A->B.

During the transition A->B, the transition A->C is satisfied, if transition A->B is atomic, the transition A->C would not happen, but if transition A->B is NOT atomic, the transition A->C would interrupt and replace the transition A->B.

alt text


test_for_transition.png (34.3 kB)
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 ShawnFeatherly · Feb 19, 2015 at 02:23 AM

What can interrupt a transition?

Other transitions, according to http://youtu.be/JeZkctmoBPw?t=5m40s

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

25 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

Related Questions

Edit Animator Transition Conditions At Runtime 0 Answers

Animator event at the end of transition. 2 Answers

Animator State Changing but animation changes only after one animation is complete 0 Answers

2D animations transitioning too quickly and looping before finishing 2 Answers

Combining two animations to be one 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