mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-05 12:52:24 +08:00
43 lines
881 B
C#
43 lines
881 B
C#
![]() |
using UnityEngine;
|
|||
|
|
|||
|
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
|
|||
|
}
|
|||
|
}
|