Object
's get_method_list()
should expound on returned Dictionaries' contents.
#4894
Labels
area:class reference
Issues and PRs about the class reference, which should be addressed on the Godot engine repository
enhancement
Your Godot version:
v3.3
Issue description:
Object
'sget_method_list()
currently reads:It returns an array of dictionaries with lots of information about each method. It would be nice to document what is in that dictionary (much like get_property_list has.)
Here is an example of a function's dictionary:
So, the documentation could read something like:
(with MethodFlags linking to
@GlobalScope
'sMethodFlags
)We could also add something for the args and default args format, but they seem a bit off, atm. I may submit a bug for them. (their names and show up as
arg0
,arg1
, etc. instead of their script name. Default args seem to shows up empty most of the time.) If we wanted to add them, someone with know-its would have to fill that part in. It looks like it follows the format of get_property_list properties, but that doesn't make sense to me... I mean, what would PROPERTY_USAGE mean on a return variable!?URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-get-method-list
The text was updated successfully, but these errors were encountered: