Documentation

Unity Engine

Unity Engine

alignByGeometry

Use the extents of glyph geometry to perform horizontal alignment rather than glyph metrics.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TextRenderingModule
public bool alignByGeometry

Remarks

This can result in better fitting left and right alignment, but may result in incorrect positioning when attempting to overlay multiple fonts (such as a specialized outline font) on top of each other.