From 098d256d732482b79986d656a2aa8d256e4b4ded Mon Sep 17 00:00:00 2001 From: Nigel Williams Date: Tue, 30 Mar 2021 09:51:37 +0200 Subject: [PATCH 1/2] Allow copy depth pass when in game view with gizmos --- .../Runtime/UniversalRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.universal/Runtime/UniversalRenderer.cs b/com.unity.render-pipelines.universal/Runtime/UniversalRenderer.cs index 52bfa678d27..422d9f085ce 100644 --- a/com.unity.render-pipelines.universal/Runtime/UniversalRenderer.cs +++ b/com.unity.render-pipelines.universal/Runtime/UniversalRenderer.cs @@ -603,7 +603,7 @@ public override void Setup(ScriptableRenderContext context, ref RenderingData re } #if UNITY_EDITOR - if (isSceneViewCamera && isGizmosEnabled) + if (isSceneViewCamera || isGizmosEnabled) { // Scene view camera should always resolve target (not stacked) Assertions.Assert.IsTrue(lastCameraInTheStack, "Editor camera must resolve target upon finish rendering."); From 359e9830f0d36ee1ec080dd5cadc77eeb7ee5057 Mon Sep 17 00:00:00 2001 From: Nigel Williams Date: Tue, 30 Mar 2021 10:45:48 +0200 Subject: [PATCH 2/2] Added changelog --- com.unity.render-pipelines.universal/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.universal/CHANGELOG.md b/com.unity.render-pipelines.universal/CHANGELOG.md index d898fdb2838..30ffb9bcfbc 100644 --- a/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/com.unity.render-pipelines.universal/CHANGELOG.md @@ -76,6 +76,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed errors when the Profiler is used with XR multipass. [case 1313141](https://issuetracker.unity3d.com/issues/xr-urp-profiler-spams-errors-in-the-console-upon-entering-play-mode) - Fixed materials being constantly dirty. - Fixed double sided and clear coat multi editing shader. +- Fixed issue where copy depth depth pass for gizmos was being skipped in game view [case 1302504](https://issuetracker.unity3d.com/issues/urp-handles-with-set-ztest-do-not-respect-depth-sorting-in-the-game-view) ### Changed - Change Asset/Create/Shader/Universal Render Pipeline/Lit Shader Graph to Asset/Create/Shader Graph/URP/Lit Shader Graph