I'm using an animation to change the alpha channel of a material to get a fade effect.
When you add the color property of the material in the animation it adds all 4 rgba channels. You can then remove rgb and only have the alpha channel to animate. When this animation runs it will set the rgb values all to 0, turning the material black.
You can just not remove rgb to fix this issue but then there is another problem. It will set rgb to the initial values of the material color. If you change the material color afterwards, the animation will be unchanged and still contain that initial color. So I would have to update all those animations by hand.
I'm using the standard shader in transparent rending mode and Unity 5.5.0f3.
Edit: Made a test project to demonstrate this.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
5 People are following this question.
send csv colour values to multiple meshes
Can I make animations snap to a frame?
Colors Seem all wrong when I set them in RGB
alpha value not changing(gradual decrease) during runtime
Pixel Color Issue