New answers tagged


I don't believe this can be accomplished with the ContentSizeFitter and LayoutElement components. Instead, you will need a custom script that sniffs the device's screen size and computes the aspect ratio and adjusts the RectTransform accordingly. Fortunately this is quite simple. Here is a demo to show how this can be done. For this example we have a Canvas ...

Top 50 recent answers are included