优化hierarchy
即时生成和删除tab(不会做动态刷新 基本上hierarchy的性能就到这了,之后还是做点辅助工具防止1000+的栏展开吧 (重要)bug测试不完全,需要再加改进
This commit is contained in:
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user