You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here I have a lua script returns a function to Java (as LuaClosure) and I want to store it locally for furthur use. Is there any way without reload the source lua file?
Typically it's like this:
-- do somethingreturnfunction()
print("foo")
end
Handle in Java:
LuaClosurefunc = (LuaClosure) globals.load(source).call();
// serialize it here
The text was updated successfully, but these errors were encountered:
Here I have a lua script returns a function to Java (as
LuaClosure
) and I want to store it locally for furthur use. Is there any way without reload the source lua file?Typically it's like this:
Handle in Java:
The text was updated successfully, but these errors were encountered: