Camera2D zoom to fit

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

Hi,

I am wondering how one could make the Camera2D zoom dynamically so a given object fit the screen.

Thanks