暂存:动画曲线
还没搞完,复制粘贴也没有
This commit is contained in:
@@ -110,19 +110,26 @@ namespace Ichni.Editor
|
||||
{
|
||||
public TimelineTab timelineTabPrefab;
|
||||
public Dictionary<Type, TimelineTab> timelineTabList = new Dictionary<Type, TimelineTab>();
|
||||
public void SetTimeLine(GameElement element)
|
||||
public void SetTimeLine(GameElement element)//暂时好了(别的类型什么的传时间就好了)
|
||||
{
|
||||
for (int i = timePointerModule.moveTabPoint.childCount - 1; i >= 0; i--)
|
||||
{
|
||||
var transform = timePointerModule.moveTabPoint.transform.GetChild(i);
|
||||
Destroy(transform.gameObject);
|
||||
}
|
||||
for (int i = timelineTabList.Count - 1; i >= 0; i--)
|
||||
{
|
||||
Destroy(timelineTabList.ElementAt(i).Value.gameObject);
|
||||
timelineTabList.Remove(timelineTabList.ElementAt(i).Key);
|
||||
}
|
||||
print(1);
|
||||
if (element is Track) Trackfind(element);
|
||||
|
||||
Notefind(element);
|
||||
|
||||
|
||||
}
|
||||
public void Trackfind(GameElement Track)
|
||||
|
||||
public RectTransform moveTabPoint;
|
||||
public void Notefind(GameElement Track)
|
||||
{//这也是if山
|
||||
foreach (var i in Track.childElementList)
|
||||
{
|
||||
@@ -133,6 +140,7 @@ namespace Ichni.Editor
|
||||
TimelineTab timelineTab = Instantiate(timelineTabPrefab, timelineTabRect.transform);
|
||||
//timelineTab.timeline = this;
|
||||
//timelineTab.MoveArea = timePointerModule.timePointerArea;
|
||||
timelineTab.MoveArea = moveTabPoint;
|
||||
timelineTab.SetTab(i, i.GetType());
|
||||
timelineTabList.Add(i.GetType(), timelineTab);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user