0 votes

I recall someone making a video on signals and showing a way to use a signal to trigger another node's builtin class set method without having any script file on the target node.

Is that possible in godot editor, and if so - how do you do it?
Can signals trigger events on other nodes that have no script attached to them?

in Engine by (98 points)

1 Answer

0 votes

I don't understand your question... so I'm just guessing here.

As far as I know you cannot implement a signal callback withou writting code (and that means attaching a script somewhere). What you can do on the editor is assign a node's signal to another node (inside its script). Inside the callback function, you can access any class method of any node's class.

If you can elaborate your question more, we can find the proper answer.

by (689 points)

Hi, I found it on my own.
It is possible to access another node's built in methods via the signal connection editor - and whats cool about it is yes - you dont need to attach a script file to trigger a method!

Very cool stuff

Unfortunatelly we can not pass parameters though:
https://github.com/godotengine/godot/issues/8557

:(

I didn't know you could access those methods through the editor! Well, in the end we'll have to stick to making that by code. I prefer that way, you have full control!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.