Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object.get_method_list() #31181

Closed
PaulZibert opened this issue Aug 7, 2019 · 2 comments · Fixed by #81079
Closed

Object.get_method_list() #31181

PaulZibert opened this issue Aug 7, 2019 · 2 comments · Fixed by #81079

Comments

@PaulZibert
Copy link

Godot version: 3.1.1
Issue description:
function Object.get_method_list() does not return the names and types of arguments in user-defined functions

@Wolfcrux
Copy link

I noticed this today while writing a plugin.

@KoBeWi
Copy link
Member

KoBeWi commented Sep 17, 2020

Still valid in 377c3bb

This code:

func test(mah_strin: String):
	pass

func _ready() -> void:
	var list = get_method_list()
	for m in list:
		if m.name == "test":
			print(m)

outputs

{args:[{class_name:, hint:0, hint_string:, name:arg0, type:0, usage:7}], default_args:[], flags:65, id:0, name:test, return:{class_name:, hint:0, hint_string:, name:, type:0, usage:7}}

The argument has always name:arg# and hint/type:0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants