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?