Width Units
Introduction
Absolute

Relative to Parent


Relative to Parent with no direct parentPercentage of Parent


Ratio of Parent

Relative to Children


Width Units of Relative to Children
Relative to Children
Ignored Width Values
Child's Ignored By Parent Size is True (1)
Child Width Depends on its Parent's Width (2)

Child is Explicitly Positioned Outside of Parent's Bounds (3)



Pixels from Right can make the parent grow to accommodate the child's X valueChild's X Units is Percentage of Parent Width (4)

X Units of Percentage of Parent Width result in the child ignoredRelative to Children and Auto Grid Horizontal

Relative to Children width




Relative to Children and Text

Percentage of Height

Percentage of File Width


Texture Width adjusts its absolute height when using Percentage of File WidthMaintain File Aspect Ratio Width

Height when using Maintain File Aspect Ratio Width also adjusts absolute width
Height or Texture Width affects the Sprite's effective widthAbsolute Multiplied by Font Scale

Last updated
Was this helpful?

