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

var alignment : TextAlignment

Description

The alignment of the text.

JavaScript
guiText.alignment = TextAlignment.Left;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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