Change material through function and folder

Hi everybody.

I was looking for a solution to my problem. I’d like to change material from a folder where they are all placed and, using a function, change the material of an actor. I want to do this because it is too long to set all the times the nodes that can allow me to change the material (at the moment I have a function with 4 nodes for just one material). Is there anyone that could help me?

Thank you for your time

Lorenzo

I don’t understand. What’s wrong with SetMaterial? Do you mean you want to replace several materials at the same time? Or on several actors?

I found a way with this guide:

The only thing i don’t like about this guide is the randomic selection of the item. I want to follow a “path” of material from the array in the order i want.