I’ve been playing around with the UMG functions and I would like to implement a certain function I’ve been trying to solve but to no avail.
In my UMG, I have two buttons which I intent to select different classes of meshes in my world.
Then, I have separate buttons to adjust the materials/colors of each mesh.
And this is how I’m changing the materials of the StaticMeshActors in my level.
With these blueprints, I would like to change the material of the selected mesh from the button but after selecting the cylinder and changing its color to blue, it will change both meshes’ colors to blue and the subsequent colors will end up being the same.
I’ve tried using boolean functions to check if one has been clicked to deselect the other one but it seems like a very inefficient way to do these simple things.
If anyone could point me to the correct direction (preferably with Event Dispatchers since I’m trying to learn it), that would be really great.