Materials altered in Animation suddenly don't work when playing the scene

While working on a character for my game, I decided to alter the colour of their arms using animation to highlight the power of the attack, i did so by changing the material on the model to another one, and it’s been working perfectly fine with no issues at all. However randomly today while I was working on it this happened.

While playing, and playing only, the materials don’t change, and instead completely unrelated parts of the model change materials. Important to note the character model is made of different parts, the arms and hands are separate from the torso model and from each other, so it makes this all the more confusing.


this also ended up happening, the material on the arm just vanishes and goes pink.

I have tried restarting unity a couple times and there is no change.

If anyone has any ideas as to what is going on that would be greatly appreciated.

Hi,

What version of Unity are you using?

We fixed something that looks similar to this issue not so long ago: Unity Issue Tracker - Animator does not work when object component references are animated (Animating object references in an animation clip would mess up order).

It should be fixed in version 2019.1.1f1.

If it’s not the case, please log us a bug and we’ll take a look.