Skip to content

qipa/lua-unity-binding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-unity-binding

A binding between native Lua libraries and Unity. The binding isn't 100% complete, but a lot of the functionality is there.

Updating Lua Version

If you require a different version of Lua, you can replace the version included (5.2.4) and rebuild the libraries for the various platforms (OSX, iOS, Android). For the most part, the included version of Lua requires very little adjustment to build and run.

Building for Android

For Android, the NDK build file (jni/Android.mk) must have references to the source files in lua/src. Also, you may need to make the following adjustment to lua/src/llex.c, since Android doesn't define the "decimal_point" field:

#ifndef __ANDROID__

/* Android doesn't have localeconv() */
#if !defined(getlocaledecpoint)
#define getlocaledecpoint()	(localeconv()->decimal_point[0])
#endif

#else

#if !defined(getlocaledecpoint)
#define getlocaledecpoint() ('.')
#endif

#endif

About

A binding between native Lua libraries and Unity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 57.4%
  • HTML 35.3%
  • C# 4.0%
  • C++ 1.4%
  • Makefile 1.1%
  • Roff 0.6%
  • Other 0.2%