Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorGUI.SelectableLabel

static function SelectableLabel(position: Rect, text: string, style: GUIStyle = EditorStyles.label): void;
static void SelectableLabel(Rect position, string text, GUIStyle style = EditorStyles.label);
static def SelectableLabel(position as Rect, text as string, style as GUIStyle = EditorStyles.label) as void

Parameters

positionRectangle on the screen to use for the label.
textThe text to show.
styleOptional GUIStyle.

Description

Make a selectable label field. (Useful for showing read-only info that can be copy-pasted.)