GUIText.anchor

var anchor : TextAnchor

Description

The anchor of the text.

JavaScript
guiText.anchor = TextAnchor.MiddleCenter;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
guiText.anchor = TextAnchor.MiddleCenter;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
guiText.anchor = TextAnchor.MiddleCenter