- Home /
Using Orthographic camera with 3d models in a 2d project
Hi all, Im making a jumping game and will be releasing on android, so ill nee to handle different screen resolutions/aspect ratios. My camera is orthographic and Im using 3d models. What is the best way to handle this? Do I need to create the game based on a certain resolution, then at runtime check the actual screen size and then scale accordingly?
Thanks
I would have a float scale variable that stores by how much you scale everything, stored in a static class. Then in the Start() of any gameObject you would have to rescale according to that scale.
Ah ok. So it is a case of scaling the 3d models then. So height of screen in world units is Camera.OrthographicSize 2f; and width is Camera.aspect Camera.OrthographicSize * 2f; And then work out the value of the scale variable and apply.....cool. Thanks!!!
Your answer
Follow this Question
Related Questions
How to use 3D model on 2D Game with collider and Gravity? Please give me some Guideline. 0 Answers
how move 2D character relative to any resolution 2 Answers
2d isometric tile map with 3d models (Shadowrun,Bastion inspired) 2 Answers
How to properly set camera sizes in 2D Ortho camera split screen? 0 Answers
Unity 2D How to Scale or Re-position sprite relative to different Screen sizes 1 Answer