How to test single scenes without a camera?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bastilo
:warning: Old Version Published before Godot 3 was released.

Hi,

I want to test single scenes in my Godot project. Some of them (like the player character scene) have no camera, because they don’t need one. If I click on “run scene”, Godot will use that “default camera” but it is misplaced so I can’t see all of my scene contents.
I also can’t add a test camera, because then I would need a script that sets the test camera to active only if there is no other current active camera. The problem here is that I couldn’t find a function like get_current_camera().

Does anyone of you has a solution to this?

When you add a Camera node to the scene, does checking the Current option in it’s properties not do it for you?

avencherus | 2017-12-09 21:59

Oh yeah right. I didn’t know that this is that easy. I thought that you have to do some complex camera management stuff then, because there are many cameras that have the current flag enabled. But it just works, thank you!

bastilo | 2017-12-10 00:08

No problem. Glad it worked out.

avencherus | 2017-12-10 04:58