I’m working on a 2D game using Unreal Engine’s Paper2D system. I want to achieve an effect where only the portion of a sprite that is inside a TriggerBox becomes transparent, while the rest remains fully opaque, like a character standing partly behind a wall.
Currently, I’m using a TriggerBox to detect when the sprite enters the area, and then I adjust the sprite’s material opacity. However, this approach makes the entire sprite transparent, regardless of how much of it is inside the TriggerBox.
Has anyone implemented something similar or can provide guidance on how to set up such a material?
Any help would be greatly appreciated!