I am making a menu system where I change visibility of various sub-menus with button presses via the VS.
I have noticed that I can have multiple buttons give the same signal to the VS (I duplicated my "Return to Main Menu" button and it also duplicated the signal link with full functionality).
I want every signal call to result in setting visibility of the parent (container) of pressed button to false.
This way I dont need to copy the script for each sub-menu return button call.
It currently looks like this:
As you can see, I can't find a proper way to link the signaller obj to the Button.get_parent() function.
How can I get the node object from the signalling node?
I need the object to be a universal link just like the function call is universal to all duplicated return buttons.