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.

I did this quick set up in the past which may give you a direction :

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: