From e296ee25a993ee2ddfb1567da85cdb1317b83c91 Mon Sep 17 00:00:00 2001 From: Arttu Peltonen Date: Mon, 4 Oct 2021 15:13:50 +0300 Subject: [PATCH] Remove duplicate lightcookie field from URP light preset editor. It's now part of the Emission group. --- .../UniversalRenderPipelineLightUI.PresetInspector.cs | 6 +----- .../Editor/Lighting/UniversalRenderPipelineLightUI.Skin.cs | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/com.unity.render-pipelines.universal/Editor/Lighting/UniversalRenderPipelineLightUI.PresetInspector.cs b/com.unity.render-pipelines.universal/Editor/Lighting/UniversalRenderPipelineLightUI.PresetInspector.cs index 64c7993c9bc..35dd024f88e 100644 --- a/com.unity.render-pipelines.universal/Editor/Lighting/UniversalRenderPipelineLightUI.PresetInspector.cs +++ b/com.unity.render-pipelines.universal/Editor/Lighting/UniversalRenderPipelineLightUI.PresetInspector.cs @@ -24,11 +24,7 @@ partial class UniversalRenderPipelineLightUI k_ExpandedStatePreset, CED.Group( LightUI.DrawColor, - DrawEmissionContent)), - CED.FoldoutGroup(Styles.lightCookieHeader, - Expandable.LightCookie, - k_ExpandedState, - DrawLightCookieContent) + DrawEmissionContent)) ); } } diff --git a/com.unity.render-pipelines.universal/Editor/Lighting/UniversalRenderPipelineLightUI.Skin.cs b/com.unity.render-pipelines.universal/Editor/Lighting/UniversalRenderPipelineLightUI.Skin.cs index d1605235505..bdb51c2f3f7 100644 --- a/com.unity.render-pipelines.universal/Editor/Lighting/UniversalRenderPipelineLightUI.Skin.cs +++ b/com.unity.render-pipelines.universal/Editor/Lighting/UniversalRenderPipelineLightUI.Skin.cs @@ -7,8 +7,6 @@ partial class UniversalRenderPipelineLightUI { static class Styles { - public static readonly GUIContent lightCookieHeader = new GUIContent("Light Cookie"); - public static readonly GUIContent Type = EditorGUIUtility.TrTextContent("Type", "Specifies the current type of light. Possible types are Directional, Spot, Point, and Area lights."); public static readonly GUIContent AreaLightShapeContent = EditorGUIUtility.TrTextContent("Shape", "Specifies the shape of the Area light. Possible types are Rectangle and Disc.");