Got error when in WebPlayer (even in Editor)
AvalonXT opened this issue · 1 comments
AvalonXT commented
VerificationException: Error verifying KopiLua.Lua:.cctor (): Cannot take the address of a init-only field at 0x1b0f
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for KopiLua.Lua
but if I don't use KopiLua (Android, iOS or Standalone) everything is going well.
crimsonzh commented
at kopilua/luaconf.cs : 130
public static readonly string LUA_DIRSEP = Path.DirectorySeparatorChar.ToString();
Path.DirectorySeparatorChar is not allowed to call on webplayer.
I think every operation on the file & path is not allowed.
change this to
public static readonly string LUA_DIRSEP = "/";
The lua is work.