extends Camera
func _physics_process(delta):
if keep_aspect:
print("x = ", size * (OS.window_size.x / OS.window_size.y), ", y = ", size)
else:
print("x = ", size, ", y = ", size * (OS.window_size.y / OS.window_size.x))
That should get you the width and height in meters otherwise you can use OS.window_size or get_viewport().size