Making an enemy flash red when hit

Try using custom Stencils:

My quick setup:

  1. The PostProcessVolume: you only need to set a single material in the PPV and it will only affect those components that have ticked Render CustomDepth Pass.

  2. The material is hard to explain :sweat:, best if you watch the video above:

  3. The idea is to set it up so that it can be used on any actor. For I created an actor component that I can add to any actor that can recieve damage and it takes care of the rest:


Result:
CustomStencil


Hope it helps

10 Likes