You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2023.3][URP] Fixing a NullReferenceException when logging an error in Server Builds (UUM-56965)
When running server builds calling `{GetType().DeclaringType.Name}` will give a NullReferenceException. This happens in two places inside the URP Codebase. To fix this the calls are simply removed as they don't provide much value.
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.universal/Runtime/Passes/ColorGradingLutPass.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Material Load(Shader shader)
37
37
{
38
38
if(shader==null)
39
39
{
40
-
Debug.LogError($"Missing shader. {GetType().DeclaringType.Name} render pass will not execute. Check for missing reference in the renderer resources.");
40
+
Debug.LogError($"Missing shader. ColorGradingLutPass render pass will not execute. Check for missing reference in the renderer resources.");
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.universal/Runtime/Passes/PostProcessPass.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1853,7 +1853,7 @@ Material Load(Shader shader)
1853
1853
{
1854
1854
if(shader==null)
1855
1855
{
1856
-
Debug.LogErrorFormat($"Missing shader. {GetType().DeclaringType.Name} render pass will not execute. Check for missing reference in the renderer resources.");
1856
+
Debug.LogErrorFormat($"Missing shader. PostProcessing render passes will not execute. Check for missing reference in the renderer resources.");
0 commit comments