优化hierarchy

即时生成和删除tab(不会做动态刷新
基本上hierarchy的性能就到这了,之后还是做点辅助工具防止1000+的栏展开吧
(重要)bug测试不完全,需要再加改进
This commit is contained in:
2025-02-12 01:57:18 +08:00
parent 30653e133b
commit 1b3c3556a1
8 changed files with 72 additions and 36 deletions

View File

@@ -84,6 +84,7 @@ namespace Ichni.Editor
private void SetUpFunctions()
{
functionInterpreter = new Interpreter();
functionInterpreter.SetFunction("test",(Action)Test);
functionInterpreter.SetFunction("loopg", (Action<string,int>)LoopGenerate);
functionInterpreter.SetFunction("print", (Action<object>)print);
functionInterpreter.SetFunction("log", (Action<object>)Debug.Log);
@@ -92,8 +93,12 @@ namespace Ichni.Editor
}
private void Test()
{
//放入测试代码
var f0 = ElementFolder.GenerateElement("Folder", Guid.NewGuid(), new List<string>(), true, null);
}
private GameElement Find(object name){
string text=name.ToString();
GameElement[] allObjects = Resources.FindObjectsOfTypeAll(typeof(GameElement)) as GameElement[];