Material Instance Array error

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