Is there anyway to get a list of all the names of used globals?
One way is to not load any globals, and then execute the script. let it crash and parse the exception for the name.. very ugly...
Is there anyway to get a list of all the names of used globals?
One way is to not load any globals, and then execute the script. let it crash and parse the exception for the name.. very ugly...
Copyright © 2021 Jogjafile Inc.
Yes the
Luaclass has a property calledGlobalswitch isIEnumerable<string>so you can do something like this:What this method does is it executes a sript and returns all the globas in the file.