I use Mecanim animation system to animate material color of Renderer and always get default value of color in script despite the color changes at runtime. The same doesn't apply to other properties.
If I set Loop Time and Write Defaults to false, I will get a value of color set back to default after animation completes.
How can I get current color? The only way I know to get color is to use "curve.Evaluate(normalizedTime);".
The code I use to get material color:...
Bug: Animated material color always returns default value.
If I set Loop Time and Write Defaults to false, I will get a value of color set back to default after animation completes.
How can I get current color? The only way I know to get color is to use "curve.Evaluate(normalizedTime);".
The code I use to get material color:...
Bug: Animated material color always returns default value.