Animation generating incorrect and impossible values?
This is a really weird problem that has me stumped. I have an intro and outro animation on an object which simply animates the opacity of a shader from 0 to 1 and then 1 to 0. In the editor preview it works as expected. However, at runtime the outro animation is consistently incorrect and instead of animating from 1 to 0 it animates from 0 to -1, which ruins the effect.
I can't find anything wrong with my setup and the animation curves definitely do not go below 0. Furthermore, the shader I'm using has an opacity range starting at 0, so should not even accept negative values, but nonetheless they are appearing at runtime. Nothing else in the scene or scripting is changing the values.
Am I overlooking something in the Animator transitions or settings that could cause this unexpected result?
Screenshot attached.
![alt text][1] [1]: /storage/temp/105640-oddvaluesinanimation.jpg