Version: 2017.1

EditorGUI.HandlePrefixLabel

Switch to Manual
public static void HandlePrefixLabel (Rect totalPosition, Rect labelPosition, GUIContent label, int id= 0, GUIStyle style= EditorStyles.label);

Parameters

totalPosition @param position Прямоугольник на экране, использующийся для этого контрола.
labelPosition @param position Прямоугольник, в котором будет находиться метка.
label @return Текущий текст, используемый для контрола.
id The unique ID of the control. If none specified, the ID of the following control is used.
style @param position Прямоугольник, в котором будет находиться метка.

Description

Make a label for some control.

HandlePrefixLabel is like PrefixLabel but allows custom control over the label position by supplying its Rect explicitly. PrefixLabel or HandlePrefixLabel should be used when creating a control with a connected label. It ensures that when the label is clicked, the control will get keyboard focus. For this reason it is important that the same ID is supplied to PrefixLabel or HandlePrefixLabel as to the control itself. It is also possible to not supply a Control ID, in which case the one from the immediately following control is automatically used.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961