Hi! I wanna change material of many objects with different color (in runtime). I found this tutorial UE4 Changable Real-Time Materials (ArchViz) - YouTube but it only change material for one object. What if I want to change more than one object? Should I create one widget blueprint for one blueprint class? Please response, thank you
That tutorial shows you how to set up a material parameter that can change the color of a material.
- Use a material like that on a mesh in a blueprint.
- On Construct, create a dynamic material instance and save that.
- Create a function on that blueprint to
Set Vector Parameteron the saved dynamic material instance. - From your level target the blueprint and send in the color parameter