2020-10-28 07:14:00 +11:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
2020-10-28 06:39:26 +11:00
|
|
|
|
|
|
|
|
|
namespace ExplorerBeta.UI.Main.Inspectors
|
|
|
|
|
{
|
|
|
|
|
public class GameObjectInspector : InspectorBase
|
|
|
|
|
{
|
|
|
|
|
public override string TabLabel => $" [G] {TargetGO?.name}";
|
|
|
|
|
|
|
|
|
|
// just to help with casting in il2cpp
|
|
|
|
|
public GameObject TargetGO;
|
|
|
|
|
|
|
|
|
|
public GameObjectInspector(GameObject target) : base(target)
|
|
|
|
|
{
|
|
|
|
|
TargetGO = target;
|
|
|
|
|
|
|
|
|
|
ConstructUI();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Update()
|
|
|
|
|
{
|
|
|
|
|
base.Update();
|
|
|
|
|
|
|
|
|
|
if (m_pendingDestroy || InspectorManager.Instance.m_activeInspector != this)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO refresh children and components
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region UI CONSTRUCTION
|
|
|
|
|
|
|
|
|
|
private void ConstructUI()
|
|
|
|
|
{
|
|
|
|
|
// todo create gameobject inspector pane
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|