I am having some troubles with UMG and Blueprint and it feels like a newbish question …
Currently I am trying to set up a system to change the Material of an object by clicking on a UMG button in the HUD… But I somehow cannot find any documentation on how to have UMG work with another Blueprint.
Basically I have a Blueprint that has the Static Mesh inside of it, a Box Collider that activates the input and adds the Widget to Viewport and also adds some informative TextRender…
Now I get it to look like I want it for now, but I cannot connect the Buttons with the Material…
What do I need to do?
Primarily I cannot access the StaticMesh of the Blueprint within the UMG Graph Editor… Or would that be the wrong way anyway?
I want to have
onClickedEvent Button 1 → assign Material 1 on the Static Mesh Component
onClickedEvent Button 2 → assign Material 2 on the Static Mesh Component
I only found a way too complicated way… why can’t I just access the SetMaterial node of another Blueprint or get the OnClickedEvents into the static mesh Blueprint… what am I not doing…