Hi there,
I am trying to emit a signal to my Camera but it is not being received by it.
My scene looks like this in terms of hierarchy:
RootNode
CameraParentNode
NodeWithScript
Camera
has a simple script attached, which has a signal and a function that is triggered when this signal is received (this is configured via Node window in editor):
extends Camera
signal rotate_camera(direction)
func onCamerarotatecamera(direction):
print("Rotating camera!")
NodeWithScript
has a script attached that emits under certain conditions:
emitsignal('rotatecamera', Vector2(-sign(direction.x), 0.0))
print("Emmited horizontal swipe")
In runtime, I see "Emmited horizontal swipe" printed but not "Rotating camera!".
What could be the reason for the emmited signal to not be received by the camera script?