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

var text : string

Description

The text to display.

JavaScripts
guiText.text = "Hello";

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
guiText.text = "Hello";
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
guiText.text = 'Hello'