- Home /
Question by
Glueckskeks44 · Sep 25, 2021 at 08:11 PM ·
camerazoom
How do I get the orthographic camera size so that the viewport of two objects is a certain value?
I'm trying to to zoom the orthographic camera in my 2D game in/out, so that two gameojects are visible on the screen at the same time. The game is turn-based so I want the camera to zoom only when I call a zoom method after each turn. My idea is to set the orthographic size of the camera in a way, that sets the distance of the viewports of two gameojects to a certain value, but if it's possible, I have no Idea how to do this. If you have a solution or other suggestions on how to do this, please tell me.
Comment
Your answer
Follow this Question
Related Questions
Camera zooming in and out 1 Answer
IPhone is zoomed in/out depending on which model 0 Answers
Camera Zoom problem 1 Answer
How to make a camera zoom in and out with buttons? 2 Answers
Lens Effect 1 Answer