Button or Widget in Realtime Scene

Hi everybody,
I have a problem with my project. What I want to do is to set up 2 buttons in the scene that will appear when an object will be clicked and then, when a button is pressed, the object have to change the material. I do the buttons and they bring up when i click the object but i don’t know how to change material. Now the materials will change only if i click on the object but i want them to change when i click the button/widget. Can someone help me?

Thank you all
Lorenzo

Hey terrenzio,

I’m looking into the issue you are having and I need a little more information on how you are setting this project up. So what you want to do is set up 2 buttons that are attached to an object via blueprint, that will spawn when you click on that object. These two buttons will allow for changing a color/material between two setting. Are these buttons displayed as part of the HUD or in the environment itself.

Step me through your process a bit and I’ll see if I can recreate the issue you are having.

Yeah I’d like to have buttons as part of the HUD and, if it’s possible, the camera have to be blocked on the object clicked focused on it. If it possible (it will be the next step) I’d like to do an “inventory” like videogames where i can put all my materials and, by clicking one of these, the object will change material with the one i chose. I prefer to have an inventory with mutual dimensions based on the number of materials i have for the clicked object (for example if i had 9 materials i’d like to have a 3x3 inventory, 4 materials a 2x2 inventory). I don’t know if it’s possible but I thank you all for the help you will give me. :slight_smile: