Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HorizontalAlignment

How text is horizontally aligned within its layout area.
Read time 1 minuteLast updated 6 days ago

Definition

public enum HorizontalAlignment

Fields

Value

Description

CenterText is centered within the layout area.
FlushSpaces are stretched so every line, including the last, fills the layout area.
JustifiedSpaces are stretched so lines fill the layout area; the last line stays left-aligned.
LeftText is aligned to the left of the layout area.
RightText is aligned to the right of the layout area.