Skip to content

Commit

Permalink
[Port] [2022.3] HDRP - Global Settings UI - Resources Section is only…
Browse files Browse the repository at this point in the history
… shown when Developer Mode is enabled.

Backport of https://github.cds.internal.unity3d.com/unity/unity/pull/36468
  • Loading branch information
JulienIgnace-Unity authored and Evergreen committed Sep 25, 2023
1 parent a2114cc commit e84428a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ public class DocumentationUrls

#region Resources

static readonly CED.IDrawer ResourcesSection = CED.Group(
static readonly CED.IDrawer ResourcesSection = CED.Conditional(
(s,o) => Unsupported.IsDeveloperMode(),
CED.Group(
CED.Group((serialized, owner) => CoreEditorUtils.DrawSectionHeader(Styles.resourceLabel)),
CED.Group((serialized, owner) => EditorGUILayout.Space()),
CED.Group(DrawResourcesSection),
CED.Group((serialized, owner) => EditorGUILayout.Space())
CED.Group((serialized, owner) => EditorGUILayout.Space()))
);
static void DrawResourcesSection(SerializedHDRenderPipelineGlobalSettings serialized, Editor owner)
{
Expand Down

0 comments on commit e84428a

Please sign in to comment.