Mervill / Unity3D-NLua

Everything you need to get started using Lua in Unity3D. Indie & Pro compatible.
Boost Software License 1.0
190 stars 50 forks source link

Mobile support #15

Closed Hexalotl closed 10 months ago

Hexalotl commented 8 years ago

Compiled plugins for Android, iOS, WSA, and Linux. Modified the example Lua scripts to make them mobile friendly. Note, there are a few special steps needed to build for iOS. These steps have been added to the read me file.

Issues addressed:

recursor94 commented 8 years ago

Nice job--does it work for webgl application builds?

Hexalotl commented 8 years ago

Unfortunately, Unity does not allow native plugin code to be run in web players http://docs.unity3d.com/Manual/NativePlugins.html

vovkasu commented 8 years ago

Hi. How I can use this Plugin for Android, iOS and WebGL?

On Android I have message:

D/Unity ( 3103): Unable to lookup library path for 'lua52', native render plugin support disabled. E/Unity ( 3103): Unable to find lua52 I/Unity ( 3103): DllNotFoundException: lua52 I/Unity ( 3103): at (wrapper managed-to-native) KeraLua.NativeMethods:LuaLNewState () I/Unity ( 3103): at KeraLua.Lua.LuaLNewState () [0x00000] in D:\Work\Unity3D\!Prototypes\LuaUsing\Assets\KeraLua\Lua.cs:33 I/Unity ( 3103): at NLua.LuaLib.LuaLNewState () [0x00000] in D:\Work\Unity3D\!Prototypes\LuaUsing\Assets\NLua\LuaLib\LuaLib.cs:77 I/Unity ( 3103): at NLua.Lua..ctor () [0x00000] in <filename unknown>:0 I/Unity ( 3103): at SpawnSphere.Awake () [0x00000] in D:\Work\Unity3D\!Prototypes\LuaUsing\Assets\Example\SpawnSphere.cs:26 I/Unity ( 3103): I/Unity ( 3103): (Filename: D Line: 0)