Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

EditorGUI.SelectableLabel

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

Parameters

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

Description

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

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答