How to create many material instance in the content browser by using blueprint?

Hi everyone,

I have a set of materials and would like to upload them to the content browser.
As the only difference is their RGB color, is there a way to allow the engine read the RGB color and create the material instance by itself? I don’t want to create the material instance one by one.

What I want is like:
(1) Create a data table with five rows (color name, R, G, B, A)
(2) Create material instances
(3) Loop through the columns in the data table one by one
(4) Set the base color of the material instance based on the value in the data table

I searched the editor scripting BP seems like there is no such node to do so. Can anyone help me? Thanks!!

You very probably can, with editor scripting. But, why not just make one material, and one instance, and set the values of RGB during runtime?

1 Like

Thanks for your reply!

I cannot find a node with a similar meaning to “Create material Instance” so I don’t know how to do so.

I think you provided a great alternative. I would like to create the material instances and set them later because I want to use the dataprep receipt to assign the material to the meshes. It seems to be an easier way to do so (or at least I know how to do so).

1 Like