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

GDScript - The dictionary from get_signal_connection_list() doesn't parse .signal #7321

Closed
ghost opened this issue Dec 17, 2016 · 4 comments
Closed

Comments

@ghost
Copy link

ghost commented Dec 17, 2016

This is on Windows version 2.1.1

When you try to access the dictionary result of this method, you can't use the dot notation for signal. The editor can't see to parse it.

func _ready():
	connect("exit_tree", self, "test")
	for s in get_signal_connection_list("exit_tree"):
		print(s.signal)

godot_2016-12-17_18-27-20

@bojidar-bg
Copy link
Contributor

Note that you can workaround this with s["signal"] -- (I do not think this issue is a minor one).

@ghost
Copy link
Author

ghost commented Dec 17, 2016

Thanks bojidar. That's what I ended up having to do to use it. Thought it was worth reporting. It seems to be something with the signal keyword, so it might be present in some other areas that I'm less familiar with.

@bojidar-bg
Copy link
Contributor

It is also present if you do object.log() --> it would fail because log is a builtin function in gdscript.

@bojidar-bg
Copy link
Contributor

Closing in favour of #8085, since even though the latter is actually duplicate of that one, it is more active that this one.

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

No branches or pull requests

2 participants