Component.guiTexture Manual     Reference     Scripting  
Scripting > Runtime Classes > Component
Component.guiTexture

var guiTexture : GUITexture

Description

The GUITexture attached to this GameObject (Read Only). (null if there is none attached)

JavaScripts
guiTexture.color = Color.blue;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
guiTexture.color = Color.blue;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
guiTexture.color = Color.blue