Download

Quick question about Dynamic Material (texture) Instances

Hey guys, so I figured out paramaters to open variables up in unreal. So I am trying to figure out the way to change a materials texture shader node with a blue print. I am currently using a texture sample 2D to hold the texture, what would I have to do in the constructor to allow me to change it?
Thanks

In your material you will need a TextureSampleParameter2D (you could also right click the regular texture sample node and convert to parameter).
Then at the blueprint side you can use the Set Texture Parameter Value node to change the texture (I’m assuming you already know to create a dynamic material instance).

Docs:

Thanks so much, yeah I got that. Quick question: Would it be better to do this through C++ if I am creating a class to switch many of the nodes in the material?