0 votes

Hey newbie question here.

Suppose I have a scene tree like this:

---------- Dog
---------- Cat
---------- Rose
---------- InsertNameOfAnyPlantHere

where 'Living' is the parent of 'Animal' and 'Plant' and so on.

My question is can a signal emitted by let's say ..... 'Dog' be received by 'Living'?
Or can a signal emitted by 'Plant' be received by 'Animal' or 'Living'?
If not how can we make sure that the signals can be received?

Mind it that the signals I am talking about are custom made signals in the scripts of the respective nodes.


in Engine by (418 points)

1 Answer

+1 vote
Best answer

There is no scope for the signals, all the Objects connected to the emitter can be notified of it (in or outside the tree).

ps: with "outside the tree" I mean, it does not need to be a Node attached to the tree, can be a inner Object class in a variable (usually of a Node in the tree).

by (7,898 points)
selected by
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 Frequently asked questions and 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.