Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2020.2.X, 2021.1.X



Found in





Issue ID




AspectRatioFitter gives a warning when changing the Components Aspect Ratio if it's attached to a Canvas



How to reproduce:
1. Open the attached "" project
2. Open the "SampleScene" Scene
3. In the Hierarchy go to Canvas -> Content -> MainPanel
4. In the Inspector notice the Aspect Ratio field of the Aspect Ratio Fitter

Expected results: AspectRatioFitter allows the use of various aspect ratios
Actual results: AspectRatioFitter gives a warning when trying to set the Aspect Ratio

Reproducible with: 2020.2.0a14, 2020.2.2f1. 2021.1.0b1, 2021.2.0a2
Not reproducible with: 2019.4.17f1, 2020.1.17f1, 2020.2.0a13
Could not test with: 2018.4.30f1 (AspectRatioFitter not available)

-The given warning: You cannot use this Aspect Mode because this Component is attached to a Canvas with a fixed width and height

  1. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a5
    Ensuring we only disable the ARF for root nonworldspace canvas's as they are the ones that have a fixed resolution that would be overwritten constantly

  2. Resolution Note (fix version 2021.1):

    Fixed in: 2021.1.0b8

  3. Resolution Note (fix version 2020.2):

    Fixed in 2020.2.7f1

Comments (5)

  1. Alejandro-Martinez-Chacin

    Feb 10, 2022 23:59

    I don't quite understand what's going on if it can be explained a bit better?
    I have used the Aspect Ratio Fitter before, it would be a surefire way to make UI fit inside aspect ratios too out of shape from the original design, we would add letterboxing as needed (a black image at the top and another at the bottom on top of everything).

    It used to work on 2019.4.xf1, came here because it isn't working on 2021.1.28f1 (it has a warning) yet this post says it has been actually fixed?

    To clarify, I have used this aspect ratio fitter before successfully on Screen Space overlay cameras and Screen Space - Camera modes (I never use world space camera for front facing flat UI) but it isn't working now.

  2. chyrho

    Nov 02, 2021 21:41

    We use 2020.3.20. This issue affects us too.

  3. DZeb

    Oct 10, 2021 13:20

    Still not working for 2020.3.17f1. How can it be fixed on all but the LTS version?

  4. jinmanpak

    May 21, 2021 01:00

    I am using 2020.3.8f but still show the warning "You cannot use this Aspect Mode because this Component is attached to a Canvas with a fixed width and height"

    How can I fix it??

  5. iamarugin

    Feb 24, 2021 21:29

    2020.2 PLEASE?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.