From bf74802c6fae4666c30848b8d70d8da71c329845 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Thu, 2 May 2024 21:02:16 +0800 Subject: [PATCH] inspector display fix --- src/Internal/Editor/UnityEditorUtility.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Internal/Editor/UnityEditorUtility.cs b/src/Internal/Editor/UnityEditorUtility.cs index 92fd1ee..3592a44 100644 --- a/src/Internal/Editor/UnityEditorUtility.cs +++ b/src/Internal/Editor/UnityEditorUtility.cs @@ -175,9 +175,13 @@ namespace DCFApixels.DragonECS.Unity.Editors Color componentColor = color32; Texture2D texture2D = CreateTexture(2, 2, componentColor); result.hover.background = texture2D; + result.hover.scaledBackgrounds = Array.Empty(); result.focused.background = texture2D; + result.focused.scaledBackgrounds = Array.Empty(); result.active.background = texture2D; + result.active.scaledBackgrounds = Array.Empty(); result.normal.background = texture2D; + result.normal.scaledBackgrounds = Array.Empty(); return result; } private static Texture2D CreateTexture(int width, int height, Color color)