Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Bug: Animated material color always returns default value.

$
0
0
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.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>