-
Notifications
You must be signed in to change notification settings - Fork 230
Open
Description
i have a simple luaTest.lua file that requires another simple point.lua file.
both are in same directory of unity( inside Assets)
it doesnt find the other file as a module(poin.lua)
luaTest.lua is:
package.path = './?.lua';
package.path = package.path .. 'D:\\Business\\BadBoy\\Assets\\luaTest.lua;';
require ('point');
print("Hello world")
point.lua is:
let point = {}
print("Skaseee")
return `point`
when i do
public string code;
Script script = new Script();
script.DoString(code);
it says ScriptRuntimeException: module 'point' not found
MoonSharp.Interpreter.Script.RequireModule (System.String modname, MoonSharp.Interpreter.Table globalContext) (at Assets/Plugins/MoonSharp/Interpreter/Script.cs:633)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels