Get all UserData methods (and functions) in a given Lua instance #326
Unanswered
Danielkonge
asked this question in
Q&A
Replies: 1 comment 3 replies
-
But proper solution would be adding this information to one of metatable fields. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a program that implements
UserData
for multiple different Rust objects for a given Lua instance, is there any way to get a list of all of theUserData
object names and their methods (and functions)?I would like to use this to generate stubs for LuaLS, and I already figured out how to get elements from
globals()
and other places, but I don't see any way to get this information forUserData
? I thought I might be able to useUserDataRegistry
, but that seems to only contain private fields without a way to get information out?If I can't get the names of all the
UserData
, is there at least a way to figure out all methods (and functions) for theUserData
of a given name?Beta Was this translation helpful? Give feedback.
All reactions