文档

Unity Engine

Unity Engine

TextAlignment

How multiline text should be aligned.
阅读时间1 分钟最后更新于 1 个月前

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.