如何正确将IronPython导入Unity

时间:2020-05-12 22:35:44

标签: c# unity3d ironpython

将IronPython导入统一的正确方法是什么?

当我只是将Lib和netstandard2.0文件夹放入Assets/Plugins/IronPython时,会出现以下错误:

Assembly 'Assets/Plugins/IronPython/netstandard2.0/IronPython.dll' will not be loaded due to errors:
Unable to resolve reference 'System.CodeDom'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'Mono.Posix.NETStandard'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

Assembly 'Assets/Plugins/IronPython/netstandard2.0/IronPython.Modules.dll' will not be loaded due to errors:
Unable to resolve reference 'Mono.Posix.NETStandard'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

Assembly 'Assets/Plugins/IronPython/netstandard2.0/Microsoft.Dynamic.dll' will not be loaded due to errors:
Unable to resolve reference 'System.CodeDom'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'Microsoft.Scripting.Metadata'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

Assembly 'Assets/Plugins/IronPython/netstandard2.0/DLLs/IronPython.SQLite.dll' will not be loaded due to errors:
Reference has errors 'IronPython'.

Assembly 'Assets/Plugins/IronPython/netstandard2.0/Microsoft.Scripting.dll' will not be loaded due to errors:
Unable to resolve reference 'System.CodeDom'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'System.Configuration.ConfigurationManager'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

我正在使用Unity 2019.3.7f1。 我选择了.NET标准2.0作为我的兼容性级别,并选择了Mono作为我的后端。 我已经从GitHub存储库下载了最新版本的IronPython。

我在做什么错?将其导入Unity的正确方法是什么?

编辑:

将后端从IL2CPP更改为Mono,从而修复了Microsoft.Scripting参考错误,但是没有解决其他参考问题。

0 个答案:

没有答案