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
7
Question by fruitaleman · May 29, 2014 at 06:55 AM · animationanimatorfreezeprogress-bar

Animator State Freezing (Blue bar / progress bar not moving)

Hi guys,

I have a game object that has an Animator component. When the scene is loaded at the first time, the default state is set and the blue bar / progress bar repeats infinitely (like it should).

However, when I change the scene and load the previous scene back up, everything is as it should. The default state is set but the blue bar / progress bar is stuck at 0. Play speed is still 1 and there doesn't seem to be anything different as I am reloading the whole scene. What is wrong here??

alt text

screen shot 2014-05-29 at 1.46.29 pm.png (23.3 kB)
Comment
Add comment · Show 1
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 TonyLi · May 29, 2014 at 02:17 PM 1
Share

Is Time.timeScale==0 (i.e., is the game paused)?

6 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by CindyEspindola · Jan 24, 2019 at 01:49 PM

I had the same issue but in my case the problem was when going from any state to death state ,and the time scale was 1 all the time but for some reason I unchecked the "Can Transition To Self" from the transition between any state and the animation that was stuck at the beggining and it worked, I have no idea why but maybe it's useful for someone.

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 LeandroExHuMeD · Apr 13, 2019 at 06:12 AM 0
Share

It worked for me, that's the simplest answer, thanks.

Anyway, I'm still looking for understanding what "Can Transition To Self" does exactly.

avatar image thomaskoji · Apr 22, 2020 at 11:23 AM 0
Share

Thank you so much. This fixed it for me.

avatar image
2

Answer by Ishoa · Mar 31, 2015 at 12:36 PM

I know this is an old post, but I just fixed an issue with my game that looked identical to this. The scene I was having issues with used to work fine and stopped working for some reason. My scene was setup to play an animation at the start-up and everything looked good except the bar was stuck like this picture and it wouldn't move. What I found out by chance is that my scene was starting with a Time Scale of 0 for some reason. Its a fairly simple scene and no code set it to be at 0 it just was. So I set code in the Start function Time.timeScale = 1; and now it works again.

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 jhina · Aug 07, 2015 at 06:31 PM 0
Share

Thank you! This is exactly the problem I had: Some other engineer paused the game by setting Time.timeScale to 0. I was trying to animate the Pause $$anonymous$$enu but the timeScale was 0, so everything froze. The other solution is the set the Animator's Update$$anonymous$$ode to Unscaled Time. This will ignore the timeScale value.

avatar image
1

Answer by vptb · May 29, 2014 at 03:37 PM

Remove that state (Init menu) and its transitions and create it again, that solved it for me.

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 atierno · Jul 08, 2018 at 10:52 PM

I encountered the same issue. It happens when using "any state" as starting state of the transition. If I change the starting state, the animation works correctly. For some strange reason, it seems that when using "any state" the time scale is set to zero. I am still trying to fix the 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
avatar image
0

Answer by floridafelli · May 05, 2018 at 02:34 AM

So I found that my animation required the exit time to finish, maybe I disabled looping and got to this stuck point. Setting my animator state to false earlier than I planned stopped the freeze state.

I don't have much experience so I plan to continue editing the animator to get my final desired state.

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 floridafelli · May 05, 2018 at 06:37 PM 0
Share

So I actually was calling my animation multiple times, because I was using a Boolean condition from the any state. I only wanted one call so I switched to setTrigger and made sure I only called it once

  • 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

33 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

Related Questions

Progress bar not showing in animator tab 2 Answers

Animation freezing? 0 Answers

2D Animation does not start 1 Answer

Why do my animations only play once? 1 Answer

[animator]how to make animation clips in ping pong mod? 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