You can create a widget like a button or something, and create a function for it that switches the color of the actor. Or simply assign a keyboard key which when pushed will change color
I am creating a blueprint for a textbox, which set the material of an actor at runtime. Right now, I made use of a “String to Material” map inside the blueprint script; for example, if I type “Gold” in the textbox, the actor will become Gold.
However, the catch is that I must manually add the “Gold Material” (M_Metal_Gold) into my String-Material Map to even be able to call it at runtime.
Is there a way I can import all existing materials in Unreal Engine into a String to Material Map? Or is there a blueprint function along the lines of “Get All Materials” that I can use?
No, I meant that I want a way to access all materials possible in UE, short of hardcoding the materials into a String to Material Map. I want to create a materials drop down list at runtime.