Inspector
初步测试Inspector
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user