I have multiple cameras set up with PK Fx Rendering Plugins.
I'm trying to have it so that:
- Some VFX in front
- Some UI stuff
- Some VFX in back
However, I'm running into an issue where all of the VFX get drawn on the front-most camera. This seems like a bug?
Visually, it currently looks like this: https://i.imgur.com/QjckwKT.jpg
However, I want it to look like this instead: https://i.imgur.com/sDPj3UO.jpg
In other words, I want the yellow crescent VFX to be behind the "Granddaddy" card, but the orange fiery stuff to be in front. These are placeholder effects for debugging of course :)
Update 1: I confirmed the issue is with PopcornFX by rendering the same scene, but instead of using Popcorn FX particles, I used cubes:
You can see that the top cube row is correctly behind the card layer, and the bottom cube row is in-front. The issue is that PopcornFX is rendering the FX on the 'behind' layer, on top, when it shouldn't.
https://i.imgur.com/YO2bKWu.jpg
Update 2: Just to rule out any possibility that my UI implementation was causing issues, I reproduced the same issue using only GameObjects.
https://i.imgur.com/rYjTLlx.png (Cubes are rendered properly - top row blocked by the blue box, bottom row is on top)
https://i.imgur.com/KHd9Lic.png (PopcornFX renders on top of the blue box, which is wrong)