Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

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

EditorGUI.SelectableLabel

public static void SelectableLabel(Rect position, string text, GUIStyle style = EditorStyles.label);

Parameters

position Rectangle on the screen to use for the label.
text The text to show.
style Optional GUIStyle.

Description

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

Did you find this page useful? Please give it a rating: