Editor UI - Hierarchy
This commit is contained in:
22
Assets/Scripts/DynamicUI/Hierarchy/Hierarchy.cs
Normal file
22
Assets/Scripts/DynamicUI/Hierarchy/Hierarchy.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.Editor
|
||||
{
|
||||
public class Hierarchy : StaticWindow
|
||||
{
|
||||
public GameObject hierarchyTabPrefab;
|
||||
public RectTransform tabContainer;
|
||||
|
||||
public List<HierarchyTab> tabList;
|
||||
|
||||
public void GenerateTab(GameElement targetElement, GameElement parentElement)
|
||||
{
|
||||
HierarchyTab tab = Instantiate(hierarchyTabPrefab, tabContainer).GetComponent<HierarchyTab>();
|
||||
tab.SetTab(targetElement, parentElement);
|
||||
tabList.Add(tab);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user