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 /
avatar image
1
Question by hrishikesh911 · Sep 29, 2015 at 03:28 PM · animationmaterial color

Errors Cannot change albedo color. NullReferenceException

Hi, I am new to unity and am taking a game development course in Coursera. I am working with assets and scripts provided by the teacher and have not modified or written any scripts. Everything till this step worked fine. But when I tried to create an animation in which the albedo color changes, I got these three errors.

  1. I cant change albedo color! It always reverts to the color shown.

  2. What does it mean? Cant seem to find anything about this warning online.

3.These errors show up when I try to record animation and change color.

alt text

snip.png (165.2 kB)
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
1

Answer by PalomPorom · Oct 22, 2015 at 03:28 PM

Hello! I'm taking the same course and encountered the same problem.

I'm not sure why exactly this is happening, maybe someone more familiar with the Unity Editor can clarify. The properties you are animating using the record button are supposed to be added to the animation automatically by the editor, but they aren't. If you click on the "Add Property" button, then find "Mesh Renderer.Material._Color", you can add it manually. Then the record button should allow you modify that property and add keyframes. You can repeat this process to animate the Position.

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 jk_kishore · Nov 29, 2015 at 04:28 PM 0
Share

It works with the above solution. But adding property can be tricky so its worth to have a look into the link below

http://answers.unity3d.com/questions/988453/cant-add-property-to-animation.html

-J$$anonymous$$

avatar image
1

Answer by Razek07 · Nov 30, 2015 at 06:16 PM

HI! I had the same issue, i was in Unity 5.2.2, try with Unity 5.5.3

:Dalt text


1.jpg (112.1 kB)
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 mateiasu · Dec 03, 2015 at 02:24 PM 1
Share

Thanks for pointing out this ... I was thinking of filing a bug ... think it was taken care of already. :)

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can the animation editor create local rotational data? 3 Answers

Adding animation clips via script 2 Answers

C# Unity how to select only one item in an array and deselect other items 1 Answer

Removing rgb channels from material animation turns color black 1 Answer

Can I make animations snap to a frame? 1 Answer


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