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

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

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