How do I set up my camera with portrait orientation?
I'm currently working on a mobile project with an orthographic camera which is meant to be played with portrait orientation. However, in the camera details panel, I'm not able to make the dimensions taller than wide. Any guidance is appreciated.
asked Oct 16 '14 at 01:45 PM in Using UE4
Set the camera aspect ratio to 0.5625 (16/9)
answered Jan 28 '15 at 06:37 PM
An easy (but pricey) solution would be an 'event tick' that checks if:
-getViewportSize | BreakVector | if X>Y then: use landscape UI, else, use portrait ui. (optional) Set (in UIWidget) LandscapeBool (true), else, set as (False)
You can either set both ui's independantly or have it (a single UI) rearrange itself based on a condition set by the action above.
Hope this wrks ;)
answered Sep 30 '15 at 07:31 PM
You can constrain aspect ratio to 0.5625 in your camera settings and this seems to work fine for some projects.
In my case doing the above would stop all my paper2D sprites from moving so I had to us the option above for desktop and for mobile I did the following: Leave constrain aspect ratio "off" in your camera settings and in project settings go to Android > Maximum aspect ratio and set that to 0.5625.
Hope it helps
answered Jul 04 '18 at 12:50 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here