开始更新ScriptableCall函数

This commit is contained in:
2025-10-18 18:22:27 +08:00
parent 87a866402b
commit 8079944534
3 changed files with 85 additions and 44 deletions

View File

@@ -853,6 +853,10 @@ namespace Demo
{ "this", new() { data = this, type = this.GetType() } },
{ "self", new() { data = this, type = this.GetType() } }
};
foreach (var type in DefaultInstantiate.GetScriptableObjectInstantiate().Keys)
{
variables.Add(type, new(type.GetType(), type));
}
return engine.RunAsync(script, importClass, variables);
}