Manual     Reference     Scripting  
  
Scripting > Runtime Classes > GUIText Switch to Component   

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