Is there any way to limit the width of a canvas scaler?? Right now it works fantastic on phones and sets to the width, I would like to limit the width on ipads/ tablets to be no more then 0.6 X the height. Is this possible at all?
I usually do this by using an AspectRatioFitter on a sub-object in the scene, all under the same root canvas.
I set this inner “usable area” to 4:3 typically (1.33 aspect ratio) and mark it to “fit inside parent.”
Behind that I also have a full-screen background in order to fill out the screen, otherwise some platforms (such as Google Android TV) will bounce you back for not filling in to the edges of the TV. They don’t like black bars.
Here’s what my ATGM game main menu hierarchy looks like:
The app itself is here:
Appstore: ‎ATGM on the App Store
GooglePlay: https://play.google.com/store/apps/details?id=com.plbm.atgm
Here’s a snap of the above screen:
Thanks but turns out the solution is FAR easier…Add a c# script to your canvas and then get the aspect ratio at runtime if it is below a certain amount then change the canvas scaler reference resolution in script