Material Instance Array error

Getting this error when Im trying to assign the values for some material instances, anyone know what i could be doing wrong and how to fix it? Thanks

Hey @JahGekyume763! Welcome to the forums!

Try dragging off of your Element and searching for “Set Material Instance ________ Parameter Value” instead of the nodes you have here. The nodes you have here are seeking a Material parameter collection which is a totally different thing that I honestly have a hard time understanding much less explaining. :slight_smile: But yeah changing out your nodes there should do the job!

Hope that helps! :slight_smile:

1 Like

That’s the wrong node.

  1. You can’t set parameters on material instances.
  2. You can only set parameters on dynamic material instances.
  3. You’re using the wrong node. You’re using the node for parameter collections, not materials.

Pull the “Array Element” pin and when you release, a popup will show up. Make sure the “Context Sensitive” checkbox is checked. Then type “Create Dynamic Material Instance”. From that you can set the parameters, but you will need to store and use the dynamic material instances somewhere for these parameters to take effect.

OR

If the Array is already Dynamic Material Instances, but you’re just storing them in an array of Material Instances, then you will need to CAST each one to a Dynamic Material Instance (the word ordering in blueprint is “Material Instance Dynamic” BTW). If this is the case, then you don’t need to store them or set them on the mesh if that’s where you got them from or they were already set.

1 Like