GUITexture
.color
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
GUITexture
GUITexture
.color
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
GUITexture
All Members
Variables
color
pixelInset
texture
Inherited Variables
animation
audio
camera
collider
constantForce
enabled
gameObject
guiText
guiTexture
hideFlags
hingeJoint
light
name
networkView
particleEmitter
renderer
rigidbody
tag
transform
Inherited Functions
BroadcastMessage
CompareTag
GetComponent
GetComponent.<T>
GetComponentInChildren
GetComponentInChildren.<T>
GetComponents
GetComponents.<T>
GetComponentsInChildren
GetComponentsInChildren.<T>
GetInstanceID
GetScreenRect
HitTest
SendMessage
SendMessageUpwards
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
Instantiate.<T>
operator !=
operator ==
operator bool
var
color :
Color
Description
The color of the GUI texture.
JavaScripts
JavaScript
C#
Boo
// change the color of the texture to green
guiTexture.color =
Color.green
;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
guiTexture.color =
Color.green
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
guiTexture.color =
Color.green