I have some objects and I can calculate size and position of littlest block with each object in it. I want to calculate position and rotation of camera so that I can see the center of the block at given angle and I can see each object in the block. How to do it ?
you would use in front of camera, or was it on enter.camera, something like that, it will read what items enter the camera, and then you would edit FieldOfView for what ever camera you are working on, you could just do camera.main.
here is a link to another post with more detailed info