i'm using LuaInterface to register a getter for some objects i want to have available in Lua. E.G:
public MyObject getObjAt(int index)
{
return _myObjects[index];
}
my Lua file:
obj = getObjAt(3)
print(obj.someProperty) // Prints "someProperty"
print(obj.moooo) // Prints "moooo"
print(obj:someMethod()) // Works fine, method is being executed
How exactly can i access the public object properties after returning them in Lua? Is that even possible or do i have to write getter for each object property?