diff --git a/UnityEditorExtension/LwguiGradientEditor/LwguiGradientEditorHelper.cs b/UnityEditorExtension/LwguiGradientEditor/LwguiGradientEditorHelper.cs index 18075b2..6253426 100644 --- a/UnityEditorExtension/LwguiGradientEditor/LwguiGradientEditorHelper.cs +++ b/UnityEditorExtension/LwguiGradientEditor/LwguiGradientEditorHelper.cs @@ -12,6 +12,7 @@ public static class LwguiGradientEditorHelper private static readonly int s_LwguiGradientHash = "s_LwguiGradientHash".GetHashCode(); private static int s_LwguiGradientID; + // GradientEditor.DrawGradientWithBackground() public static void DrawGradientWithBackground(Rect position, LwguiGradient gradient, ColorSpace colorSpace, LwguiGradient.ChannelMask viewChannelMask) { Texture2D gradientTexture = gradient.GetPreviewRampTexture(256, 1, colorSpace, viewChannelMask); @@ -23,8 +24,9 @@ public static void DrawGradientWithBackground(Rect position, LwguiGradient gradi GUI.DrawTextureWithTexCoords(r2, backgroundTexture, texCoordsRect, false); // Outline for Gradinet Texture, used to be Frame over texture. - GUI.Box(position, GUIContent.none); - + // LWGUI: GUI.Box() will cause subsequent attributes to be unable to be selected + // GUI.Box(position, GUIContent.none); + // Gradient texture Color oldColor = GUI.color; GUI.color = Color.white; //Dont want the Playmode tint to be applied to gradient textures. diff --git a/package.json b/package.json index 963a8bf..dc84727 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.jasonma.lwgui", - "version": "1.18.1", + "version": "1.18.2", "displayName": "LWGUI", "description": "A Lightweight, Flexible, Powerful Shader GUI System for Unity.", "keywords": [