Change button material with BP

How can I change the material of a button in runtime with BP??

Set brush methods are for images and I don’t want to add an image to my button

go to appearance/style section of the button:

image

you will see it has normal hovered and pressed…you can expand those

image

here I set normal state with a breush material

image

to do via blueprint is with this node:

image

and then if you expand the style node you have the same 3 states and

you can set there like this:

buttons materials must have user interface domain on it like this:

cheers!
Dany

2 Likes

Thanks man

1 Like