Is there any way to draw outline of a main character on top of niagara?

I am using post-process material with custom and scene depths to draw outline of a character when he’s behind of any stuff. For some reason it is not working with niagara even if i will give it some custom stencil.
Any solutions?