From 9ca23b9b87e7da40c5437ced3886813c9aef11c8 Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Mon, 25 Oct 2021 13:07:00 +0200 Subject: [PATCH 1/2] Add info on info box --- .../Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs b/com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs index 6208e7de52c..6bcd73b95e8 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs @@ -142,7 +142,7 @@ internal static class Styles public static GUIContent opaqueCullModeText = new GUIContent("Cull Mode", "For opaque objects, change the cull mode of the object."); - public static string afterPostProcessZTestInfoBox = "After post-process material wont be ZTested. Enable the \"ZTest For After PostProcess\" checkbox in the Frame Settings to force the depth-test if the TAA is disabled."; + public static string afterPostProcessInfoBox = "If After post-process don't render, make sure they are enabled in the frame settings.\nAfter post-process material wont be ZTested. Enable the \"ZTest For After PostProcess\" checkbox in the Frame Settings to force the depth-test if the TAA is disabled."; public static readonly GUIContent[] displacementModeLitNames = new GUIContent[] { new GUIContent("None"), new GUIContent("Vertex displacement"), new GUIContent("Pixel displacement") }; public static readonly int[] displacementModeLitValues = new int[] { (int)DisplacementMode.None, (int)DisplacementMode.Vertex, (int)DisplacementMode.Pixel }; @@ -590,7 +590,7 @@ protected void DrawSurfaceGUI() void ShowAfterPostProcessZTestInfoBox() { - EditorGUILayout.HelpBox(Styles.afterPostProcessZTestInfoBox, MessageType.Info); + EditorGUILayout.HelpBox(Styles.afterPostProcessInfoBox, MessageType.Info); } void SurfaceTypePopup() From c9e8f82e784a2981ea98f51b0ac11149c19f012c Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 26 Oct 2021 10:30:43 +0200 Subject: [PATCH 2/2] Clarify a bit better --- .../Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs b/com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs index 6bcd73b95e8..c81edc2a46a 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs @@ -142,7 +142,7 @@ internal static class Styles public static GUIContent opaqueCullModeText = new GUIContent("Cull Mode", "For opaque objects, change the cull mode of the object."); - public static string afterPostProcessInfoBox = "If After post-process don't render, make sure they are enabled in the frame settings.\nAfter post-process material wont be ZTested. Enable the \"ZTest For After PostProcess\" checkbox in the Frame Settings to force the depth-test if the TAA is disabled."; + public static string afterPostProcessInfoBox = "If After post-process objects don't render, make sure to enable \"After Post-process\" in the frame settings.\nAfter post-process material wont be ZTested. Enable the \"ZTest For After PostProcess\" checkbox in the Frame Settings to force the depth-test if the TAA is disabled."; public static readonly GUIContent[] displacementModeLitNames = new GUIContent[] { new GUIContent("None"), new GUIContent("Vertex displacement"), new GUIContent("Pixel displacement") }; public static readonly int[] displacementModeLitValues = new int[] { (int)DisplacementMode.None, (int)DisplacementMode.Vertex, (int)DisplacementMode.Pixel };