GUIContent.image

var image : Texture

Description

The icon image contained.

JavaScript
var icon : Texture;

function OnGUI () {
if(!icon) {
Debug.LogError("Add a texture on the inspector first");
return;
}
GUI.Button (Rect (0, 0, 100, 20), GUIContent (icon));
}