Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextAlignment

How multiline text should be aligned.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TextRenderingModule
public enum TextAlignment

Remarks

This is used by the _alignment property.

Fields

Value

Description

CenterText lines are centered.
LeftText lines are aligned on the left side.
RightText lines are aligned on the right side.