LuaInterface.LuaStatePtr.LuaRequire C# (CSharp) Method

LuaRequire() public method

public LuaRequire ( string fileName ) : int
fileName string
return int
        public int LuaRequire(string fileName)
        {
            #if UNITY_EDITOR
            string str = Path.GetExtension(fileName);

            if (str == ".lua")
            {
                throw new LuaException("Require not need file extension: " + str);
            }
            #endif
            return LuaDLL.tolua_require(L, fileName);
        }