mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 18:14:35 +08:00
inspector display fix
This commit is contained in:
parent
51486b2a0a
commit
bf74802c6f
@ -175,9 +175,13 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
Color componentColor = color32;
|
Color componentColor = color32;
|
||||||
Texture2D texture2D = CreateTexture(2, 2, componentColor);
|
Texture2D texture2D = CreateTexture(2, 2, componentColor);
|
||||||
result.hover.background = texture2D;
|
result.hover.background = texture2D;
|
||||||
|
result.hover.scaledBackgrounds = Array.Empty<Texture2D>();
|
||||||
result.focused.background = texture2D;
|
result.focused.background = texture2D;
|
||||||
|
result.focused.scaledBackgrounds = Array.Empty<Texture2D>();
|
||||||
result.active.background = texture2D;
|
result.active.background = texture2D;
|
||||||
|
result.active.scaledBackgrounds = Array.Empty<Texture2D>();
|
||||||
result.normal.background = texture2D;
|
result.normal.background = texture2D;
|
||||||
|
result.normal.scaledBackgrounds = Array.Empty<Texture2D>();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
private static Texture2D CreateTexture(int width, int height, Color color)
|
private static Texture2D CreateTexture(int width, int height, Color color)
|
||||||
|
Loading…
Reference in New Issue
Block a user