Skip to content
Mr zhan edited this page Jan 10, 2015 · 1 revision

Meta`s:

@:require("hello", "world")
class Main { ... }

require "hello" -- added to top of your lua file
require "world"

you have to change the Nlua default path at first

lua.cs

LUA_PATH_DEFAULT = ";" + Application.dataPath + "\\lua\\?.lua";

after you can put your *.lua to unity

/Assets/lua/

Clone this wiki locally