I'm a little uncertain as to how the size of an orthographic camera affects screen resolution.
Basically I'm creating a HUD/UI elements for a game using a base screen resolution of 1920x1080. I've had some issues when bringing over images and icons from photoshop, that were creating according to my desired screen resolution.
Can someone tell me what size I should be setting my camera for in the Orthographic Camera settings?
If you’re using a separate camera for your HUD/UI, you could set the orthographic camera size to 1080 / 2 = 540.
This would allow you to set the scale of your HUD objects to be the pixel dimensions of your images.
Basically, the orthographic size value represents the amount of in-game units (meters) half of your vertical screen size takes.
Thanks I had always assumed this but never true knew :D
I’m really puzzled by this. I’ve seen a few suggestions that orthographic camera size is screen height/2. In my scene, it was set to 5 by default, and the resolution became correct when I changed it to 3. How do I actually compute the right value?
Thanks I had always assumed this but never true knew :D
– HHameline