Fixed Unity 6000.5 serialization warnings

Removed obsolete entities window from toolbar sample
This commit is contained in:
Anders Ejlersen 2026-06-16 19:21:51 +02:00
parent 127702c4f7
commit 7a675c6c85
12 changed files with 65 additions and 10 deletions

View file

@ -15,17 +15,18 @@ namespace Module.NavigationTool.Editor.Favorite
public override void Draw(EditorFavoritesWindow window, Rect rect, Styles styles)
{
float dim = rect.height;
float dimWidth = 24.0f;
float dimHeight = rect.height;
GUI.BeginGroup(rect, styles.toolbox);
{
var r0 = new Rect(0.0f, 0.0f, rect.width - dim, dim);
var r1 = new Rect(rect.width - r0.height, 0.0f, dim, dim);
var r0 = new Rect(0.0f, 0.0f, rect.width - dimWidth, dimHeight);
var r1 = new Rect(rect.width - dimWidth, 0.0f, dimWidth, dimHeight);
searchStr = EditorGUI.TextField(r0, searchStr);
if (GUI.Button(r1, "+", styles.buttonAddFolder))
EditorFavoritesPopupWindowAddFolder.Show(new Vector2(r1.xMax, dim), null);
EditorFavoritesPopupWindowAddFolder.Show(new Vector2(r1.xMax, dimHeight), null);
}
GUI.EndGroup();
}