I want to change the material of a model (sofa). I have made the widget BP with a few buttons, one per material. I have a button called “BotonVerde” that should change de color (material) of the sofa.
The sofa is a BluePrint Class with a Static Mesh Component and a collision box (to display the menu when overlap)
Here are the names:
Blueprint Class: “SofaColores”
Static Mesh: “Sofa”
Widget Blueprint: “MenuColores”
My problem is that I can´t find the way to get the Sofa in the Widget BP Event Graph to apply the function "Set Material. In this function, I can connect the “Target” only with GetSofa, see the image bellow. When I do this there is another node asking for another Target!! see second image
I am really lost with this issue, I guess is very easy to solve, but I don´t find the way.
Here is a image of my BP Class
Thank you so much!!