I am extremely confused by the Unity editor. Look:
I have an image,
And I want my camera to fit it perfectly. I have achieved so by using a
size property of
Notice how the viewport rect has 1 width and 1 height. If you run this game in a Samsung Galaxy S5, the sprite will fit perfectly in your device.
Now, resize the game scene view a bit (drag the Unity window border outwards to make it grow). Let's make it bigger. Then this happens:
The camera "white bounds" grew bigger! And the sprite no longer fits perfectly in the Galaxy S5!
My question is, then: why did the camera's bounds grow along with the editor window, if the viewport rect property never changed (it is still at 1 width an 1 height)?