Fixed Unity 6000.5 serialization warnings
Removed obsolete entities window from toolbar sample
This commit is contained in:
parent
127702c4f7
commit
7a675c6c85
12 changed files with 65 additions and 10 deletions
|
|
@ -1,7 +1,9 @@
|
|||
using UnityEngine;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Module.NavigationTool.Editor.Favorite
|
||||
{
|
||||
[Serializable]
|
||||
internal abstract class AbstractEditorFavoritesView
|
||||
{
|
||||
public abstract void Initialize();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue