From the recent update to the topic, I can only think of binding the method to the Input of a key so you can run the method while the game is running.
i don’t think it is possible to call a method randomly inside of a breakpoint.
It completely depends on what the method is supposed to do.
For example:
- If i want to track the position of my mouse cursor at all times, I would create a label and update its text with the mouse global position inside of a
_process
method - If i want to simply change a value of an object, I would do it straight from within the remote tab
- if i want the code to go into the other if-branch, i would tie the condition to a debug boolean that i can control from within the remote tab
- if i want to trigger the call of a method whenever i want while the game is running, i would add an inputaction and then process the input.
