GUIContent.none Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIContent
GUIContent.none

static var none : GUIContent

Description

Shorthand for empty content.

JavaScripts
// Draws a button without any text.
function OnGUI () {
GUI.Button (Rect (0, 0, 100, 20), GUIContent.none);
}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void OnGUI() {
GUI.Button(new Rect(0, 0, 100, 20), GUIContent.none);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def OnGUI():
GUI.Button(Rect(0, 0, 100, 20), GUIContent.none)