• 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 yb1980 · Jan 19, 2014 at 01:32 PM · animationanimatorcomponent

Animator component, instead of Animation

I've pretty new to unity and C# and general development, as such i'm learning using the UGDE book by Will Goldstone as was highly recommended. I understand the book is for Unity 3.x but most of it has translated well into 4.3, but i've got to chapter 10 where i'm trying to add an animation of a fade to black.

I've followed the instructions about creating a script call "Animator" (did receive a message saying it might have issues due to script being call the same as a component)& one called "Fader". The have a GUITexture selected i've opened the Animation window and followed the steps there. within the instructions it say that the "Animation" component will automatically be added to the object, but i'm getting a "Animator" component instead. which has completely different parameters.

With the Animator component i get the fade to black working (though looping atm), but trying to follow the book i've tried removing (&/or just disabling) the Animator then manually adding the "animation" component. But if i do that the "fadeOut" animation doesn't do anything (screen is blacked out from hitting play and doesn't loop)and i receive a warning in the console.

"The AnimationClip 'fadeOut' used by the animation compoent 'fade' must be marked as legacy"

So a couple of questions;

  1. Why is it automatically adding the "Animator Component" and not the "Animation Component"?

  2. What does the warning message mean?

  3. How can i get the Animation to work?

Thanks for your help in advance

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

2 Replies

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

Answer by yb1980 · Jan 19, 2014 at 06:15 PM

Got it sorted myself after so more trail an error. Instead of having the GUITexture selected when creating new animation clip (which seems to add the animator component), i manually added the "animation component" to the object, manually create the animation file. Once both of these steps were done i created the new animation clip and overwrite the manual one i created.

Doing this didn't add the animator component to my objects and doesn't cause the legacy error message.

Not sure if its the correct way of doing it but its the way i've found that works for me.

:)

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 yb1980 · Jan 21, 2014 at 06:31 AM 0
Share

If there is a better way please let me know :)

avatar image
0

Answer by chickenbutt44 · Feb 02, 2015 at 10:56 AM

Look at this video https://www.youtube.com/watch?v=ls5te55OCRU and start watching at 1:10. The guy shows how to fix the legacy problem

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

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

19 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

Related Questions

2D Animation does not start 1 Answer

Why is my Avatar not connected to my mesh? 0 Answers

Unity showing "animator" component instead of the "animation" component 2 Answers

Activate a component when an animation clip in an animator is played? 0 Answers

Animator.Rewind? 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