Changing material details dynamically

How would I go about creating a material where I can switch between details?

Lets say I have a material that is good, but to make it great I add some extra details to it. I want to be able to turn those details on and off, or even better a switch where I can switch between multiple detail branches on the fly using Blueprints.

Any good examples on this?

You can do this via Material parameters
To have control during runtime you can use either material parameter collection or Dynamic material instance
If switching is not part of gameplay and it just for convenience during your work - use Static switch node in material editor and StaticBoolParameter

Thanks for your reply, but I’m not thinking about parameters but entire node sets.

Lets say I have one set of nodes that output colors, and one that do bump mapping. Now I want to turn on and off the one set of nodes that do bump mapping. Maybe even replace it using a switch node if one existed. This is instead of having two different materials and switching between them, so I will have one material where I can turn on and off, or switch between, entire node branches.

I’m confused a little bit actually, you’re totally ignored everything I said :smiley:


2 different branches, you can switch between them using static switch node I mentioned and parameters

Not ignoring, just oblivious :smiley:

Thanks, I really needed that example.