UnityFx.Outline
UnityFx.Outline copied to clipboard
URP 14.0.8 Issue with 'Enable Depth Testing' Property
There seems to be a bug with URP 14.0.8 and Unity 2022.3.6f1. When setting the Render Flag property to "Enable Depth Testing" on the Outline Settings asset, the render is corrupted and a warning message pops up in the console.
Also experiencing the same problem with Unity 2022.3.8f1.
I found a way to fix this, and when I changed the input value "depthTexture" in line 77 of the OutlinePass.cs
to "_renderer.cameraDepth", the feature worked fine again!and line 61 could also be commented out.
@Matrix64 Thanks for the tip, unfortunately didn't work for me.
@efeurun You can try this project in Unity 2022.3.18f1, In order to compress the file size, I deleted the Library folder OutlineTest.zip
If you are prompted to convert the code when running the project, select No
I found a way to fix this, and when I changed the input value "depthTexture" in line 77 of the
OutlinePass.cs
to "_renderer.cameraDepth", the feature worked fine again!and line 61 could also be commented out.![]()
Hero! This worked on 2022.3.20f1