GUIText.alignment Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIText
GUIText.alignment

var alignment : TextAlignment

Description

The alignment of the text.

JavaScripts
guiText.alignment = TextAlignment.Left;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
guiText.alignment = TextAlignment.Left;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
guiText.alignment = TextAlignment.Left