Zoom main camera to fit bounds / game-objects?

Say I want to zoom the camera to fit a Geom.Rectangle bounds, or a pair of game objects - is that even possible? Camera zooms appear to be purely numeric values, whereas I was hoping to be able to zoom the camera so that it always fitted GameObject A & GameObject B within the viewport (so I could create a Rectangle bounds from this easily enough if that was the way to do it…

1 Like

Nice, Samme to the rescue again. Thanks for that, that’s perfect :+1:

1 Like

Thank you, this indirectly helped me as well.