How to set a material for a Static Mesh Variable?

I’m creating a Blueprint in UE5 in which I added a public variable that adds a mesh to my BP. Is there a way to set a public material so i can change it afterwards in the BP parameters?

I tried with the “Add Material” node but i’m not sure if I’m using it correctly because the material is not updating when I change it in the parameters.

I know that for a mesh component inside the BP I can use “Create Dynamic Material Instance” but that node doesn’t seem to work with static mesh variables.

1 Like