This is what I want to achieve. When I press the button, the window will zoom out until it reaches either the layout's width or height, making sure it shows only the objects in the game. But I am not sure how to determine or ensure that the zoom does not go over the height or width that exposes the outside of the layout.
If you open the above capx, you will understand what I mean. When I click the button, it zooms out exposing parts that are not supposed to be in the game.
Would greatly appreciate any help. Thanks guys!