Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SelectableLabel(Rect, string, GUIStyle)

Makes a selectable label field. (Useful for showing read-only info that can be copy-pasted.)
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void SelectableLabel(Rect position, string text, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the label.

text

The text to show.

Optional GUIStyle.