Decal Dynamic Material Instance

Can you use decals and change their materials on the fly in blueprint? (Not MPC)

Seem to have no available options when using a decal dynamic material instance vs a mesh dynamic material instance, anyone have any input? Thanks!

Yes you can. Off the return value of create Dynamic Material Instance you can set values of the dynamic material that is applied to the decal, to change that material use a Set Decal Material node and then create dynamic and then you can use that return value to set material properties “on the fly” so to speak for a whole new material.

2 Likes

I’m sorry but I don’t really understand ! Do you have a picture of this ?
Thanks
Julien

@JDARRAS
I needed to find the solution for the same thing. It was challenging but I decoded that previous message from @Black_Phoenyx .

Might be useful for others if looking for this:

  1. Go to Construction script.
  2. Out of Decal component create “Create Dynamic Material Instance”.
  3. From the return value of it create “Set Vector Parameter Value”.
  4. Of course your material assigned to the Decal needs to have the property named same as “Parameter Name” so you can set this param dynamicaly.

Blueprint for Decal Actor:

Settings:

Material:

Material Instance:
image

Colored decal on my scene:
image

1 Like