Two static meshes on single Set Material node?

I’m cleaning up the blueprints our modeler has created. I am weak in BP and do the C++ stuff.

The question is, what does it mean that this Set Material has two targets. The BP seems to work fine, but shouldn’t this node accept only a single static mesh as input? I’ve seen this before where if you drag off a variable, it keeps the old target and adds the new instead of replacing the old one. Is it a bug when certain nodes accept two target sources, and which wins as far as what the node operates on? Surely this “Set Material” node isn’t designed to set multiple static mesh inputs iteratively, but if not, why does it allow/retain both targets?

Screenshot 2024-06-20 at 09.07.27

It will run the function on both

In fact you can even have an array variable and connect it, and it will call it on all elements

After checking the code, this seems to be what determines if a Target pin can be connected to multiple inputs:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.