I'm using Godot 3.1.1 and I need to switch between two cameras when a button is pressed. I was trying to use set_current to switch between them but it doesn't seem to work. I have the following code:
When I print the state before and after the set_current() function, it doesn't change so the cameras are not switching. If I instead do it like the code below, it works.
Did I miss something about how set_current works()? Is it not supposed to be used like this?