UI masks don't work after adding URP

After adding Universal Render Pipeline to our project, UI masks don’t work anymore (the child image is unaffected by the parent mask). The masks already in the project broke, and I’m unable to create new ones that work. Is this a known issue?

Hello,

I fixed it by ticking the “Depth/Stencil Buffer” option in the “Renderer 2D Data” file.

204972-buggly.png

In case someone runs into this issue with URP but not for a 2D renderer (like in my case) , make sure the Depth Format has stencil

This fixed it for me! I’ve got an older VR project I’ve been upgrading as new versions of Unity arrived. I finally made the jump from the bult-in to URP in Unity 6000.2 and suddenly the scroll view content just spilled-out beyond the viewport. Setting it to the Depth Attachment Format and Depth Texture Format to Depth_32_Sencil_8 fixed it.

Thanks!

(using the keywords I tried searching in hopes it helps someone else stumble on your solution!)