Unity3D-NLua icon indicating copy to clipboard operation
Unity3D-NLua copied to clipboard

Got error when in WebPlayer (even in Editor)

Open AvalonXT opened this issue 10 years ago • 1 comments

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.

AvalonXT avatar Jan 23 '15 09:01 AvalonXT

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.

crimsonzh avatar Jan 05 '16 09:01 crimsonzh