UMG / Widget Dynamic Material not updating?

I tried all I know but the material just won’t update, eventhough when I print the scalar parameter value it show that it’s getting updated:

I even tried creating dynamic material and setting it on tick but nothing happens, here’s how my widget setup looks like:

image


This is the tutorial I followed to do this for anyone curious, the material itself works as intended but it refuses to get updated when I add it as a widget, I’m I missing something? any help would be super appreciated!

Where and how do you create the dynamic material? And when do you assign it? Here we can only see you try to read its parameters.

Hi, I assigned it to the image component:

image

RUBBISH

So it’s not dynamic at all. It’s just a material instance. Try this:

See here

1 Like

According to that tutorial I followed the first picture is how I’m meant to assign it, I can’t find a create dynamic material node in the UMG editor, how do I assign it?

1 Like

Oh I see, Thanks, now It will hopefully work

I believe the “Get Dynamic Material” node does exactly this. It creates a dynamic material from the already assigned material and then sets it again.

Non-updated docs :

2 Likes

It didn’t work, I’m confused, usually works fine on things besides widgets:

Gets the material that allows changes to parameters at runtime. The brush must already have a material assigned to it, if it does it will automatically be converted to a MID.

I did not know that. Thanks!

@ScOrcher Providing it works as advertised in the docs (will test it in a sec), the issue is elsewhere.


edit: yeah, that works fine, actually. TIL.

2 Likes

This is how I’m creating and testing the widget, there are no other widgets created and the variable isn’t being affected by anything else:

It turns out I put “Complete Range” for the scalar parameter name instead of “CompleteRange”, works now, Thanks for helping

3 Likes

@ScOrcher Can you flag your last post as the correct answer instead? Cheers.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.