Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUIStyle.alignment

public var alignment: TextAnchor;

Description

Text alignment.

	// Prints how text alignment is set.

function OnGUI() { Debug.Log(GUI.skin.button.alignment); }