I’m trying to create a BP which will allow me to swap meshes, materials, color and additional functionalities I intend to add in the future, all contained in it.
I just can’t get my head around is how to expose a parameter to change image/text etc for each button added as a child to a wrap box.
So the idea is that I set in my actor blueprint the number of options for static meshes I want to swap, the number of materials/textures for each actor, change colors, etc and I think I can get there once I know how can expose the index/id and be able to assign an image to each child button created in the wrap box container.
I’ve managed to create the event dispatcher logic for each ID which is working great but I’m stuck on changing the freaking button image
To better explain it visually, here is what I’m at:
The widget that I’m intending to have as container to switch widgets and the main buttons for each functionality. It’ll be the the widget set in the actor blueprint:
in the Actor Blueprint, after casting the Widget, set its Images Array variable and call the Custom Event to make the buttons.
Since you’re getting the Widget Blueprint from the Widget Component and not creating it, we need to call a custom event to create the buttons instead of Event Construct. Because Event Construct will run before we set the Images Array Variable.