# Can you animate a dynamic material parameter in UMG widget timeline?

**URL:** <https://forums.unrealengine.com/t/can-you-animate-a-dynamic-material-parameter-in-umg-widget-timeline/151529>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 2, 2020, 10:40am UTC](https://forums.unrealengine.com/t/can-you-animate-a-dynamic-material-parameter-in-umg-widget-timeline/151529 "2020-10-02T10:40:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mctittles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mctittles](https://forums.unrealengine.com/u/Mctittles)\
**Post date:** [October 2, 2020, 10:40am UTC](https://forums.unrealengine.com/t/can-you-animate-a-dynamic-material-parameter-in-umg-widget-timeline/151529/1 "2020-10-02T10:40:21Z")

</div>

So in the graph of my widget I can create a dynamic material instance. I can then use “Set scalar parameter value” to change a parameter on it in blueprints.

I’d like to be able to change this parameter on the timeline so the designer can edit fade in times etc but do not see a way to select it. Is this possible or am I limited to linear onframe changing?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 2, 2020, 10:57am UTC](https://forums.unrealengine.com/t/can-you-animate-a-dynamic-material-parameter-in-umg-widget-timeline/151529/2 "2020-10-02T10:57:59Z")

</div>

You could add Trigger / Repeater events to the timeline:

 ![Untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/3/83ed8b98e51d1db147247f1a97d5b16f84f23783.png)

From here on, you can use the Sequencer Graph to push what you need into the material instance.

---

<div class="post-metadata">

**Author:** ![Mctittles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mctittles](https://forums.unrealengine.com/u/Mctittles)\
**Post date:** [October 3, 2020, 6:08am UTC](https://forums.unrealengine.com/t/can-you-animate-a-dynamic-material-parameter-in-umg-widget-timeline/151529/3 "2020-10-03T06:08:58Z")

</div>

Thanks for the help on this (and nice pictures with arrows!). I’ve got it somewhat working but am not able to curve edit the value. It’s a fade in dissolve effect and wanted the designer to tweak how it fades in with curves.

So I created events in the graph like so:

 ![UE4Editor_hCsGvc25A3.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/0/c04051212cb20d48ef1db15240a0f48cfa9575ab.png)

I found you need to create a keyframe then right click-\>properties and choose the event function to call. I set the start value at zero and end value at 1. It doesn’t seem to work to change value over time though, it’s just an on and off and if I try to add a curve in the curve editor unreal just crashes.

Here is my event function:

 ![UE4Editor_kWs1ihFpqB.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/7/47d4c3853d116a01edc6bd3ec8ea05ecb8cda0af.png)

I’d like to be able to change the float value over time and adjust it on the curve editor if possible.

---

<div class="post-metadata">

**Author:** ![Mctittles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mctittles](https://forums.unrealengine.com/u/Mctittles)\
**Post date:** [October 5, 2020, 8:26am UTC](https://forums.unrealengine.com/t/can-you-animate-a-dynamic-material-parameter-in-umg-widget-timeline/151529/4 "2020-10-05T08:26:32Z")

</div>

I found a way to do it.

First create a float curve:

[![](https://i.imgur.com/W3KhyyJ.png) ](https://i.imgur.com/W3KhyyJ.png)

Edit the curve as you like with time and value over time:

[![](https://i.imgur.com/HiPI9Ng.png) ](https://i.imgur.com/HiPI9Ng.png)

In your UMG create a dynamic material, set the effect material, set the starting param value, and assign the curve to a variable:

[![](https://i.imgur.com/J76R2gu.png) ](https://i.imgur.com/J76R2gu.png)

Setup a function or whatever that starts a timer based on the values of the curve:

[![](https://i.imgur.com/J76R2gu.png) ](https://i.imgur.com/J76R2gu.png)

Then in an event tick you can get the elapsed time of the timer and set the parameter based on the curve value at that time:

[![](https://i.imgur.com/rX3Mff3.png) ](https://i.imgur.com/rX3Mff3.png)

Now you can edit the curve and the animation of the value will change accordingly.
