diff --git a/Editor/DrawerUtility.cs b/Editor/DrawerUtility.cs index eac0730..e55c0ce 100644 --- a/Editor/DrawerUtility.cs +++ b/Editor/DrawerUtility.cs @@ -1037,7 +1037,7 @@ public static bool CreateAndSaveNewGradientTexture(int width, int height, string var gradientObject = ScriptableObject.CreateInstance(); gradientObject.gradient = new Gradient(); gradientObject.gradient.colorKeys = new[] { new GradientColorKey(Color.gray, 0.0f), new GradientColorKey(Color.white, 1.0f) }; - gradientObject.gradient.alphaKeys = new[] { new GradientAlphaKey(1f, 0f), new GradientAlphaKey(1f, 1f) }; + gradientObject.gradient.alphaKeys = new[] { new GradientAlphaKey(0f, 0f), new GradientAlphaKey(1f, 1f) }; var ramp = CreateGradientTexture(gradientObject.gradient, width, height); var png = ramp.EncodeToPNG(); diff --git a/Editor/ShaderDrawer.cs b/Editor/ShaderDrawer.cs index a145689..9b46992 100644 --- a/Editor/ShaderDrawer.cs +++ b/Editor/ShaderDrawer.cs @@ -54,7 +54,6 @@ public override void OnGUI(Rect position, MaterialProperty prop, GUIContent labe MetaDataHelper.RegisterMainProp(lwgui.shader, prop, _group); MetaDataHelper.RegisterPropertyDefaultValueText(lwgui.shader, prop, RevertableHelper.GetDefaultProperty(lwgui.shader, prop).floatValue > 0 ? "On" : "Off"); - return; } string finalGroupName = (_group != String.Empty && _group != "_") ? _group : prop.name; diff --git a/Editor/Test/LWGUI_KeywordTest.mat b/Editor/Test/LWGUI_KeywordTest.mat index c768333..df61d74 100644 --- a/Editor/Test/LWGUI_KeywordTest.mat +++ b/Editor/Test/LWGUI_KeywordTest.mat @@ -19,6 +19,7 @@ Material: serializedVersion: 3 m_TexEnvs: [] m_Floats: + - _ZWrite: 1 - _enum: 1 - _group: 1 - _keywordEnum: 1 diff --git a/Editor/Test/LWGUI_SampleDrawer 2.mat b/Editor/Test/LWGUI_SampleDrawer 2.mat index bfb4e4b..5b31933 100644 --- a/Editor/Test/LWGUI_SampleDrawer 2.mat +++ b/Editor/Test/LWGUI_SampleDrawer 2.mat @@ -76,6 +76,7 @@ Material: - _key3_Float4_PowerSlider: 0.0033800516 - _minMaxSlider: 1 - _preset: 0 + - _preset1: 0 - _range: 0 - _rangeEnd: 0.7474536 - _rangeStart: 0.24745372 diff --git a/package.json b/package.json index 6d18ca7..c19bd21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.jasonma.lwgui", - "version": "1.4.1", + "version": "1.4.2", "displayName": "LWGUI", "description": "A Lightweight, Flexible, Powerful Shader GUI System for Unity.", "keywords": [