Hi, I am trying to get a simple outline effect in Unity based on this tutorial Edge Detection Outlines
I am in Unity 2022.3.5 and URP 14.0.8 so I am also attempting to update the tutorial to the newer URP specs.When I do this, I get a black screen and multiple warnings and error logs.
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.Universal.ScriptableRenderPass.Blit
Render Pipeline error : the XR layout still contains active passes. Executing XRSystem.EndLayout() right now.
Internal: JobTempAlloc has allocations that are more than the maximum lifespan of 4 frames old - this is not allowed and likely a leak
To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations.
The RenderFeature Scripts are attached. One is to combine depth and normals, in the frame debugger it looks like this is working fine, the other is the outline and is the source of the problem.
Any help is appreciated, thank you!
Also if there is a source for beginner friendly documentation on this stuff please let me know, a lot of it has been very opaque unless you already know how it works.
9177242–1277918–DepthNormalsFeature.cs (5.25 KB)
9177242–1277921–OutlineRenderFeature.cs (4.38 KB)