Enabling or Disabling masks from a material

Hey, I’m creating a material in which I have a mask that I want to be able to turn off and on.

To be specific, what I want to do is that the mask is only active while a button is active (In boolean terms, if isActivated = true, the mask is activated).

I can´t find anything that allows me to do this. I know that doing it with decals could be an easy solution, but I feel like is better with a material.

Hi,

One easy way to do so is to create a Material Collection, then Multiply your mask with that Material Collection and add a Material Collection Scalar Parameter node in your blueprint

Then just Link it to the input you want (0 = invisible, 1 = visible)

Hope it helps