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 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 : UMG buttons change material to world grid material - Blueprint Visual Scripting - Unreal Engine Forums
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
Hi could you paste screen shot of that blueprint that you created AronD THX in advance
“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.”
Wouldn’t you then be changing it for all actors that happen to have that blueprint?