URP Render Features work in Game Mode but not in Build



Cause i need the possibility to cut a hole in the “green ground”, i assigned a transparent material to the “green ground” and let it write to the depth. Then i use “AfterRenderOpaques” to Render the “green Ground” again but with override Material so it is then visible. In Game View everything works as it should but in built the “green ground” is just transparent. Any Ideas how to fix that?

Ok i dont know why but i set Pass Index to 1. With it set to 0 it works but still no clue why