Animation curves for material control

Oh so the curve has no effect in the animation preview viewport but does work in game. Is not working in persona a bug?