GUIContent
.none
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
GUIContent
GUIContent
.none
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
GUIContent
All Members
Variables
image
text
tooltip
Constructors
GUIContent
Class Variables
none
static
var
none : GUIContent
Description
Shorthand for empty content.
JavaScripts
JavaScript
C#
Boo
// 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
)