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
4
Question by mahana21 · Nov 03, 2018 at 09:05 PM · animatortransition

Animator - what does "Can transition to self" do?

Could anyone please fill me in on what does the "Can transition to self" checkbox in animator state transitions actually do?

Because my situation is like this: I have an animator with a few states, each of them has a short animation. The thing is, when the checkbox for self-transition is checked, the animation does not play (stays frozen in the first frame): alt text

But when I uncheck it, it plays correctly: alt text

The weird thing is, that I have a different animator in the project, with pretty much the same setup (just different number of states and different animations associated with the states), and when I attach this animator to an animator controller, the animations play without a problem, even with the self-transition checkbox checked.

Could anyone enlighten me as to the purpose of this checkbox and why I am getting these inconsistent results?

Thanks.

screenshot-2018-11-03-213323.png (49.2 kB)
screenshot-2018-11-03-213326.png (47.7 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
6

Answer by Pawel_Legowski · Aug 24, 2019 at 08:44 AM

@mahana21 If you do not disable transiting to self. On each update the condition for going from AnyState to your current state will be met, and the animation is rewinded over and over again so you can only see the first frame. You would avoid that by unchecking "Can Transition To Self" or changing you comparing values logic to Triggers (because trigger is cleared after getting conusmed, so the conditions for entering state are met only once and the animation can actually stay in that state instead of entering it over and over again).

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 Sha67 · Jul 26, 2021 at 10:51 AM 0
Share

Unfortunately I found your answer after I disabled transition to self. I had a problem with my animation clip, it was like a sword animation and when I clicked left mouse button multiple times, the animation repeated before it ended, the animation turned like a dance, I spent hours tried to fix it and I did by luck^_^.

avatar image OmerPasa3328 · Nov 14, 2021 at 07:22 PM 0
Share

how can I do this in code? because, I hard code my animations. :(

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

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

Force faster transition from empty state? 0 Answers

AnimatorTransitionInfo.IsName() Not Working 1 Answer

Animator: Change animation at any time 1 Answer

Mecanim transition retargeting and conditional exit to any state? 0 Answers

Animator Carrying Over Flip X Property During Transition? 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