• 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
0
Question by MapuHoB · Nov 18, 2015 at 07:37 AM · animationanimation controller

Unity animator state finished, motion not

Example:

Screenshot of the TopAppearing motion - boost the alpha of the sprite from 0 to 1 for total of 2 seconds.

Screenshot after TopAppearing state has been finished

Screenshot of the TopAppearing's transition settings


Question:

  • Why isn't the alpha of the Top's sprite 255(1) after the TopAppearing animation state has been finished?

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
0
Best Answer

Answer by glhfGreg · Nov 18, 2015 at 10:32 AM

It looks to me like the exit time on the transition is causing the issue. You have it set to 0.5 which means it will start transitioning when TopAppearing is executed halfway likely causing it to never quite finish.

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 MapuHoB · Nov 18, 2015 at 10:42 AM 0
Share

it's true, I coudn't understand the reason why it would not finish, though. What is causing the animation to not finish?

avatar image glhfGreg MapuHoB · Nov 18, 2015 at 11:06 AM 0
Share

A transition blends one animation state into another one. Consider a walking animation blending into a running one. The transition causes it to gradually do less of the walking and more of the running. The same happens in your case: it starts doing less of the TopAppearing animation and more of the TopTextAppearing animation. If you want to make sure an animation is completed before transitioning to the next one, an exit time of 1.0 is needed.

I'm guessing you want the TopTextAppearing state to start while TopAppearing is executing. In this instance it would be better to make two animation controllers each controlling one game object. This way the animations would be independent of each other and you could time them as you wanted via code. This tutorial on animating the UI (is applicable to your 2d animations) might help you out: http://blogs.unity3d.com/2014/06/30/unity-4-6-new-ui-world-space-canvas/.

avatar image MapuHoB glhfGreg · Nov 18, 2015 at 04:52 PM 0
Share

The example with the walking- running animations was great and very easy to understand. Now I know that this is just how unity works. Thanks!

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

43 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

Related Questions

Blend from Idle to Walking 0 Answers

I cannot get my animation to play, help? 1 Answer

How to control speed of animation on Unity by a .txt file? 1 Answer

All animation stop at the beginning of default states,Help! Animation stop at the beginning of default state 1 Answer

Animator Controller Transitions doubts 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