The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I am aware of easy ways to accomplish what I want to do with a script, I was hoping to just use the GUI. Is there a way to emit a signal without it's arguments?

For example, I have a button which is an Area2D, I want to emit it's body_entered(body) signal and connect it to an an AnimationPlayer's function, play(). I am able to connect the signal from the button to the node, and add an extra argument with the name of the animation, but it also calls the signal with the PhysicsBody that enters it as the first argument, and obviously AnimationPlayer doesn't take that as an argument.

I am using the layer masks to ensure the correct body triggers the signal, so that argument is not necessary for me, is it possible to have this signal called without it's predefined argument? Without a script, that is.

Godot version 3.3.2
in Engine by (276 points)

Please log in or register to answer this question.

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 [email protected] with your username.