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 /
  • Help Room /
avatar image
0
Question by Warbeard · Aug 21, 2016 at 03:09 PM · animationtransitionmechanim

Mechanim animation doesn't play

Hi guys,

I created 2 animations for my character with the Animation windows - one is Idle, the other is Walk. The idle animation, or should I say, the default animation, plays fine, but the transitioned animation wont play at all. The transition happens, and the state clearly shows the animation running, but the model doesnt change away from Idle. If I set walk as the default, then that plays too, but again, no transitions.

alt text

Any ideas?

capture3.png (38.3 kB)
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 DiegoSLTS · Aug 21, 2016 at 04:14 PM 0
Share

Without the transitions' setup and the code that triggers the transitions it's pretty hard to help you...

avatar image Warbeard DiegoSLTS · Aug 21, 2016 at 04:16 PM 0
Share

I can see that, but the blue bar shows that the transition is made, but the animation simply doesn't play. I have of course checked that it is the right animation and so on.

To answer your question though, the transition is on a $$anonymous$$ove boolean, and I've checked in the inspector that it is indeed true when the character is supposed to be using that animation. The transition back is when that bool is false.

2 Replies

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

Answer by Warbeard · Aug 22, 2016 at 11:15 AM

Hey everyone! I figured it out!

My model was set up like this:

Main empty gameobject, which had the scripts. -main body, child of main gameobject -all children objects of main body, like arms and legs and such

The main object had the animator, and it was from that that the animations were created. However, somehow the 'main body' object had the same animator set, and this caused the issue - once I removed that component it plays as it is supposed to!

Thanks for everyone watching, hope this helps someone else out.

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 m-dilip · Aug 22, 2016 at 05:00 AM

It would be good if you provide more info on this

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 Warbeard · Aug 22, 2016 at 11:13 AM 0
Share

I created 2 animation clips by rotating joints in unity (it's a 2d model). In my script I pass the animator a boolean - walking. If walking is false then idle should be playing, if it's true then walking should be playing.

The inspector clearly showed the variable being true, but the transitioned animation didnt play.

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

124 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Survival shooter - Video 2 - Movement Animation Not Working 1 Answer

How to get quick animation transition variants on start? 0 Answers

Animation Issues 0 Answers

C# - Animation Based on Speed and Direction 1 Answer

Animation Transition Unity 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