自定义曲线编辑器, Trail界面跟进
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.Editor
|
||||
@@ -10,5 +11,26 @@ namespace Ichni.Editor
|
||||
public Hierarchy hierarchy;
|
||||
public Inspector inspector;
|
||||
public Timeline timeline;
|
||||
|
||||
public List<StaticWindow> staticWindows;
|
||||
|
||||
/// <summary>
|
||||
/// 快捷设置所有静态窗口的激活状态
|
||||
/// </summary>
|
||||
public void SetAllStaticWindowsActive()
|
||||
{
|
||||
bool anyWindowActive = staticWindows.Any(window => window.gameObject.activeSelf);
|
||||
staticWindows.ForEach(window =>
|
||||
{
|
||||
if (anyWindowActive)
|
||||
{
|
||||
window.DisableWindow();
|
||||
}
|
||||
else
|
||||
{
|
||||
window.EnableWindow();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user