Layout Mode

Introduced in Better UI 3.0


Similar to Better Content Size Fitter's "Treat As Layout Element", the Better Aspect Ratio Fitter has the Layout mode, which does basically the same.

  • Calculate Preferred Size
    Treats the Aspect ratio as layout element by calculating the size of the object (for both: MinSize and PreferredSize). This allows it to be properly used inside Layout Groups.
  • Ignore Layout
    Disables the Size Calculation and allows the object to be freely placed inside Layout Groups.


Note: The reason why this is not just a bool like in Better Content Size Fitter is the default value: Usually, it should be enabled. The reason why the Better Content Size Fitter is still using a bool is backwards compatibility.

Settings

The normal Aspect Ratio Fitter settings, but they can be set up differently per Screen Configuration.



Hidden Properties

  • aspectMode
  • aspectRatio