EditorGUILayout
- BeginHorizontal
- BeginScrollView
- BeginToggleGroup
- BeginVertical
- BoundsField
- ColorField
- CurveField
- EndHorizontal
- EndScrollView
- EndToggleGroup
- EndVertical
- EnumPopup
- FloatField
- Foldout
- InspectorTitlebar
- IntField
- IntPopup
- IntSlider
- LabelField
- LayerField
- MinMaxSlider
- ObjectField
- PasswordField
- Popup
- PrefixLabel
- PropertyField
- RectField
- SelectableLabel
- Slider
- Space
- TagField
- TextArea
- TextField
- Toggle
- Vector2Field
- Vector3Field
- Vector4Field
EditorGUILayout.PrefixLabel 前置标签
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参数
- labelLabel 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();
}
}
最后修改:2011年7月14日 Thursday 18:38