How to render custom depth pass with flipbooks?

How do you place your charters in the scene? On a mesh?

Hey guys,
I was trying to render characters behind walls, I followed this tutorial: UE4 - Tutorial - Render through Walls! - YouTube. My only problem is that the characters in my game are 2D sprites using flipbooks. So how can I achieve that same effect but on a flipbook?

The flibook itself is set to be a child of the mesh component, however we don’t assign anything to the mesh component itself. Each character is it’s own blueprint that derives from a C++ class. That what it looks like in the editor:

342500-screenshot-2021-06-26-114635.jpg

did you ever find the solution?

@mono8321
I just happened to stumble on the same issue.
Not sure what the implications are turning on this setting but by going in the Sprite Material and
set the [Allow Custom Depth Writes] I was able to render , or in my case exclude, PFB sprites from the scene.

I hope it works for you as you want too