Signal Emit from GD Script to VS

This is currently a little complicated, but hopefully this will be a more elegant in the future.

  1. Create a node with a GDScript (can be any kind of node if it’s only for emitting a signal)

  2. Create a custom signal

  3. Connect the buttons ‘pressed’ signal to that new nodes script

  4. Connect the custom signal to the “receive_signal” VS, setup your conditions with the first argument detecting the name of the signal

  5. Add the code in the button pressed func to call the custom signal. Include the two required arguments which is the name of the signal and another variant check if needed (otherwise use null)

  6. You can call signal from a button press