Manual     Reference     Scripting  
  
Scripting > Editor Classes > EditorGUI   

EditorGUI.PrefixLabel  

static function PrefixLabel (totalPosition : Rect, id : int, label : GUIContent) : Rect

Parameters

NameDescription
totalPosition Rectangle on the screen to use in total for both the label and the control.
id The unique ID of the control.
label Label to show in front of the control.

Returns

Rect - Rectangle on the screen to use just for the control itself.

Description

Make a label in front of some control.