0

我们在 Unity 新游戏(Unity v.5.4.1)中使用 Moonsharp(Lua 解释器)

在 Android 上运行良好。而且...这就是关键...

但是在 iOS 的 DEV 版本中没有问题,但是在 RELEASE 版本中它不能正确运行。

我们有以下错误:

"ScriptRunTimeException: Can not convert clr type System.MonoType"

ios开发版和发布版有什么区别?

我重复。我们只会在将它发布到 iTunes Store 时收到该错误,而不是在开发模式下。

有什么解决办法吗?

4

1 回答 1

0

This is likely a bug.

Change UserData.RegisterAssembly()

to

UserData.RegisterAssembly(typeof(Program).Assembly); or something similar. Just use the RegisterAssembly overload function with the Assembly parameter. This will likely fix your problem.

于 2016-11-15T11:31:26.323 回答