How to apply mask to any actor?

How to apply mask to any actor?

If I want to make any actor invisible when they go into a Volume or Collider.

Is there a generic way to apply the mask? Or is there another method to get it?

In other words, it should work with all types of actors.
But without editing the original material of the actors.(For obvious reasons. Because they can be hundreds of different actors. That’s why modifying the material of each one is not an option).

Thank you very much!!

1 Like

Use the ‘hidden in game’ node :slight_smile:


1 Like

Hi @ClockworkOcean

From your answer I assume that it is not possible to apply a mask in a generic way.

I will use your method for this specific case because it is a thousand times easier than modifying the original materials.

But it’s a shame because with the effect of the mask it would be more spectacular.

I guess it’s not possible to have everything in this world.

Thank you very much for your help!! :heart:

1 Like

It may be possible to do something else. Are you expecting a kind of fade or crossover as the objects intersect?

I think, that would need to be implemented in the material of the actor that disappears, which is specifically not what you want.

For instance, this

Although it looks like the box is making another mesh invisible, it’s actually happening in the material of the mesh.

1 Like

Yes, exactly, that was the idea at first.

But the problem is precisely that. Implementing that effect in each material of each actor is too much work, I think it’s not worth it.

I also think that it violates my first law of programming (you will not repeat code and you will always use inheritance and polymorphism). :smile:

So I think your example is the best solution. :ok_hand:t5:

Thank you so much!! :heart:

1 Like

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