Set orthographic camera viewport rect to capture all of the selected bounds.
You can import this asset from UnityPackage.
You have to import following assets to use this asset.
Add BoundsCaptureCamera.cs
to camera and set some Bounds which inherit BoundsMonoBehaviour.cs
in Inspector.
And, set BoundsCaptureCamera.UpdateCaptureArea()
method to BoundsMonoBehaviour.BoundsUpdateEvent
if you need.