Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


alignment

Text alignment.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public TextAnchor alignment { get; set; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Prints how text alignment is set. void OnGUI() { Debug.Log(GUI.skin.button.alignment); }}