Documentation

Unity Engine


Unity Engine


TextAlignment

How multiline text should be aligned.
Read time 1 minuteLast updated a month ago

Definition

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

Remarks

This is used by the TextMesh.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.