Inspector

初步测试Inspector
This commit is contained in:
SoulliesOfficial
2025-02-11 22:58:56 -05:00
parent 1b3c3556a1
commit f949cd3229
33 changed files with 1679 additions and 93 deletions

View File

@@ -9,27 +9,16 @@ namespace Ichni.Editor
{
public class Hierarchy : StaticWindow
{
public GameObject Nouse;
public GameObject hierarchyTabPrefab;
public RectTransform tabContainer;
public List<HierarchyTab> tabList;
//public int ID=0;
public HierarchyTab GenerateTab(GameElement targetElement, GameElement parentElement,int reuse=-1)
public HierarchyTab GenerateTab(GameElement targetElement, GameElement parentElement)
{
HierarchyTab tab =Instantiate(hierarchyTabPrefab, tabContainer).GetComponent<HierarchyTab>();;
HierarchyTab tab = Instantiate(hierarchyTabPrefab, tabContainer).GetComponent<HierarchyTab>();
//if(parentElement.connectedTab!=null)tab.transform.SetSiblingIndex(parentElement.connectedTab.transform.GetSiblingIndex());
tab.SetTab(targetElement, parentElement);
tab.hierarchy=this;
return tab;
}
}
}