Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Onyxgold |
I’m trying to enable and disable the interpolated camera using a button.
i made a spatial(camera view) and made both the int. camera(cam) and button a child of the spatial. I gave the script to the spatial and in the script i connected the button to the script:
func _on_Button_pressed():
print "changed"
if ($cam.enable==true):
$cam.enable=false
if ($Camera.enable==false):
$Camera.enable=true
i added the print “changed” because i thought the button wasn’t working but it