24 lines
827 B
C#
24 lines
827 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Ichni.RhythmGame;
|
|
using Unity.VisualScripting;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Ichni.Editor
|
|
{
|
|
public class Hierarchy : StaticWindow
|
|
{
|
|
public GameObject hierarchyTabPrefab;
|
|
public RectTransform tabContainer;
|
|
public List<HierarchyTab> tabList;
|
|
|
|
public HierarchyTab GenerateTab(GameElement targetElement, GameElement parentElement)
|
|
{
|
|
HierarchyTab tab = Instantiate(hierarchyTabPrefab, tabContainer).GetComponent<HierarchyTab>();
|
|
//if(parentElement.connectedTab!=null)tab.transform.SetSiblingIndex(parentElement.connectedTab.transform.GetSiblingIndex());
|
|
tab.SetTab(targetElement, parentElement);
|
|
return tab;
|
|
}
|
|
}
|
|
} |