Download

Changing the material of an actor with ui button

I want to change the material of an object by clicking on UI button, but can’t get it to work, I read through all the docs, but nothing worked out.

Can anyone explain me how to do this?

Thank you.

Hello,
I did this quick set up in the past which may give you a direction : https://forums.unrealengine.com/showthread.php?61302-UMG-buttons-change-material-to-world-grid-material&p=244115&viewfull=1#post244115

Hey Fen,

I already solved it by creating a function in the target actor’s blueprint, where I set the material, then calling it with a Get All Actors of Class BP in the widget blueprint.

Thanks anyway :slight_smile:

Hi could you paste screen shot of that blueprint that you created AronD THX in advance :slight_smile: