开始更新ScriptableCall函数
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user