Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
3
Question by LetalisDev · Mar 31, 2015 at 11:28 AM · animationnot workinganimationclipanimationcurve

Animation won't play? Please help!

I have recently upgraded to unity 5. I have been making an android game which contains quite a few animations. I created them on unity 4 and they automatically played and looped. Since I have upgraded to unity 5 these animations will not even play in-game. Like it was in unity 4 I need the animation to automatically start and then loop until the scene ends. I have no idea how to do this. Please help!

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

7 Replies

· Add your reply
  • Sort: 
avatar image
14

Answer by Rosehardt · Mar 31, 2015 at 03:08 PM

"I had the same problem with an animation and I found it is related to the 'Static Batching' feature present in Unity 5. Here is how I solved it:

  • Select the object you are animating.

  • In the Top-Right corner of the Inspector window you'll see a drop
    down list near to the Static label,
    click on it.

  • Uncheck the 'Batching Static' option."

Source: http://stackoverflow.com/questions/28856600/animation-not-working-unity-5/28859706#28859706

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 LetalisDev · Mar 31, 2015 at 03:15 PM 1
Share

Batching Static is already disabled. Still have no idea what it is.

avatar image Willard720 · Oct 14, 2018 at 10:03 PM 0
Share

Batching static was already disabled

avatar image minidolken · Dec 13, 2018 at 05:00 PM 0
Share

I know this is kind of late but for anyone who has a problem... $$anonymous$$y "Batching Static" option was already unchecked and checking it actually fixed my whole animator for some reason.. Hope it helps for anyone else who revisits :)

avatar image
14

Answer by cboxgo · Dec 13, 2015 at 02:47 PM

I'm not sure if your problem is the same as mine was, but you may be doing:

 Time.timeScale = 0f;  

this will prevent your animation from running if the Animator is set to Normal update mode. To get around this, set it to UnscaledTime in the animator settings or put this line in your code:

 <Animator>.updateMode = AnimatorUpdateMode.UnscaledTime; 



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 smatthews1999 · Nov 17, 2018 at 03:26 PM 1
Share

Wow thanks... I spent an hour trying to animate some canvas elements and this fixed it. That being said I don't understand where and how Time.timeScale is being set to zero. It's not.. otherwise everything would stop moving right?

avatar image HelloWorld_FromEarth · Jun 24, 2020 at 04:16 PM 1
Share

Thank you! I do forget to reset the timeScale from the pause scene. That saves my day.

avatar image GoblinGameWorks · Oct 31, 2021 at 01:44 AM 0
Share

OMG @cboxgo you have no idea how long I've been searching for this. Thank you very much for this post. 6 years later you still saving the day.

avatar image
8

Answer by oye_beto · Sep 02, 2015 at 09:37 AM

Try selecting your animation clip in the Project window then change the Inspector window to Debug by right clicking its tab.

Now you should be able to set Legacy to true.

You can also select Wrap Mode to Loop if you need it.

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 Willard720 · Oct 14, 2018 at 10:04 PM 0
Share

Didn't make a difference if it was true or false.

avatar image
2

Answer by carldevelopsforcoffee · Aug 25, 2017 at 02:45 AM

I encountered animations randomly not working, the fix was to disable then enable the animation. This resets something in the animation system and playing works fine after.

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
1

Answer by ZiyadMM · Oct 28, 2018 at 01:16 PM

a bit old question but this could help others as well, if you are using layers, make sure you have the correct layer mask with relevant skeleton items selected and not conflicted with other layers.

remove the layer mask and try playing the animation to make sure about this issue.

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
  • 1
  • 2
  • ›

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

26 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

Related Questions

SetCurve not working for me. 1 Answer

How can I reassign animation curves to play on a child object (instead of through parent)? 1 Answer

Unity 5.5: Jump to Frame in Unity Animation Window 0 Answers

How to add a curve to a .anim ? 0 Answers

Editing mecanim animation from script 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