Some progress on inspector rewrites, most of the framework figured out now.

This commit is contained in:
Sinai
2021-04-27 21:22:48 +10:00
parent 07ddba3c3d
commit a2ff37e36d
25 changed files with 1197 additions and 323 deletions

View File

@ -10,16 +10,17 @@ namespace UnityExplorer.UI.Inspectors
{
public abstract class InspectorBase : IPooledObject
{
public InspectorTab Tab { get; internal set; }
public bool IsActive { get; internal set; }
public InspectorTab Tab { get; internal set; }
public abstract GameObject UIRoot { get; }
private static readonly Color _enabledTabColor = new Color(0.2f, 0.4f, 0.2f);
private static readonly Color _disabledTabColor = new Color(0.25f, 0.25f, 0.25f);
public float DefaultHeight => -1f;
public abstract GameObject CreateContent(GameObject content);
public abstract GameObject CreateContent(GameObject parent);
public abstract void Update();