Auto Scale camera depending on Screen Size - How??

I’m new on Unity and want to create a simple 2d game for Android. So I created a plane which fits my screen. Then I put the other object in front of the plane. Everything works fine on my device (720x1280|potrait) but when run it on a phone which has a lower resolution the objects get cut off… So how can I set the camera to look at my plane.
I want that my game scales everything to fit.

I’m searching on Google now for 2 weeks… I didn’t find a solution.
But I found something about the orthografic size. I didn’t understand it…
I tried everything but nothing worked…

I hope someone can help me!!
Thanks!

You can move the camera to a distance that will display everything. I don’t know what is getting cutoff where but the general mapping between field of view of the camera is:

Height = 2 * Tan(0.5 * field_of_view) * distance;

And you can get the width use the ratio of Screen.width / Screen.height.

The only fix is to make the game in a screen with the same proportions as the target device. Otherwise it’s like trying to show a widescreen movie on a round TV. There aren’t any settings that can help.

The fix for movies is to put those black bars. Since many games have a free camera, Unity’s “fix” is to just put on the screen whatever fits.

If your target device is 4 million by 3 million pixels, that’s 4:3. So if you make your game with Game/Scene at 1200 by 900, it will look fine. Keeping your screen that size is a pain. So, Unity lets you click just under the Game tab and set the size (known as the Aspect Ratio.) That isn’t really a setting – it just helps your design “look the same” as it will on the target.

Here is my “Game” screen and when I set camera here and build it and generate “apk” then it not showing all same in my mobile as it is when I change another screen size mobile the show something another wrong then the first mobile screen view.
It is 2D game.
I am thankful in advance for helping me.

you can use Camera.ScreenToWorldPoint() !