Outline/shadow scripts not changable via animation

Hey, I asked this already in answers but new questions keep coming too frequently and I think this topic is also suited for the forums.
I’m using UGUI buttons with an animation as transition. With the animator controller I’m able to modify almost every value, except for the UI.Outline script, which does not seem to work properly. Trying to animate the effect distance does occasionally work, but most often it will just do nothing, leaving the outline at the original state. I’ve even tried the UI.Shadow script with the same outcome. The values in the inspector are displayed and animated properly, the outline is just not changing. If I modify the values through a script however it seems to update properly. In theory I could link up a script with the outline effect to get what I want, but that seems like a terrible hack for a problem that shouldn’t really exist.

My question is, has anyone experienced this issue before? Is it a bug, will it be fixed? Or am I just missing something obvious here?

I had this problem too with shadow script.

Have you tried to call “SetVertexDirty” or “SetMaterialDirty” on the UI.Graphic every frame when playing the animation? We had similar issues we “fixed” doing this.

That would fix it, but then I could also write a script to update the effect distance directly. The main problem is that we have to rely on a extra script for something that the shadow scripts should handle internally…

My “me too” comment. 4.6.4f1

It seems to be getting confused between the Outline and the Shadow effects, and finally no matter how one you choose, it always end up applying the effect to the Outline in my case (although it maybe it is because Outline is before Shadow in the component list).

Still a problem with 2018.2.18f1. But changing the order helped as I only needed to access the shadow properties for an animation.