文档

Unity Engine

Unity Engine

SelectableLabel(Rect, string, GUIStyle)

Makes a selectable label field. (Useful for showing read-only info that can be copy-pasted.)
阅读时间1 分钟最后更新于 1 个月前

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.