EditorGUILayout
.PrefixLabel
Manual
Reference
Scripting
Scripting
>
Editor Classes
>
EditorGUILayout
EditorGUILayout
.PrefixLabel
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
EditorGUILayout
All Members
Class Functions
BeginHorizontal
BeginScrollView
BeginToggleGroup
BeginVertical
ColorField
CurveField
EndHorizontal
EndScrollView
EndToggleGroup
EndVertical
EnumPopup
FloatField
Foldout
InspectorTitlebar
IntField
IntPopup
IntSlider
LabelField
LayerField
MinMaxSlider
ObjectField
PasswordField
Popup
PrefixLabel
PropertyField
RectField
Slider
Space
TagField
TextArea
TextField
Toggle
Vector2Field
Vector3Field
Vector4Field
static
function
PrefixLabel (label :
string
, followingStyle :
GUIStyle
=
"Button"
) :
void
static
function
PrefixLabel (label :
string
, followingStyle :
GUIStyle
, labelStyle :
GUIStyle
) :
void
static
function
PrefixLabel (label :
GUIContent
, followingStyle :
GUIStyle
=
"Button"
) :
void
static
function
PrefixLabel (label :
GUIContent
, followingStyle :
GUIStyle
, labelStyle :
GUIStyle
) :
void
Parameters
Name
Description
label
Label to show in front of the control.
Description
Make a label in front of some control.
Simple window that shows the prefix label.
class
SimplePrefixLabelUsage
extends
EditorWindow
{
@
MenuItem
(
"Examples/PrefixLabel Usage"
)
static
function
Init() {
var
window = GetWindow(SimplePrefixLabelUsage);
window.Show();
}
function
OnGUI
() {
var
ammo :
int
= 0;
EditorGUILayout.BeginHorizontal
();
EditorGUILayout.PrefixLabel
(
"Ammo"
);
target =
EditorGUILayout.IntField
(ammo);
EditorGUILayout.EndHorizontal
();
}
}