Version: 5.4
public static float DelayedFloatField (Rect position, float value, GUIStyle style= EditorStyles.numberField);
public static float DelayedFloatField (Rect position, string label, float value, GUIStyle style= EditorStyles.numberField);
public static float DelayedFloatField (Rect position, GUIContent label, float value, GUIStyle style= EditorStyles.numberField);

パラメーター

position 表示位置
label Float Field の前に表示するオプションのラベル
value 編集する値
style オプションの GUIStyle

戻り値

float ユーザーが入力した値。ユーザーがエンターキーを押すか Float Field からフォーカスを移動するまで戻り値は変更されないことに注意してください。

説明

float を入力するために Delayed Text Field を作成します。

EditorGUI.FloatField に似ていますが、ユーザーがエンター押すか Float Field からフォーカスを移動するまで新しい値を返しません。


public static void DelayedFloatField (Rect position, SerializedProperty property, GUIContent label= null);

パラメーター

position 表示位置
property 編集する float プロパティー
label Float Field の前に表示するオプションのラベル。ラベルを非表示にする GUIContent.none を渡します。

説明

float を入力するために Delayed Text Field を作成します。

EditorGUI.FloatField に似ていますが、ユーザーがエンター押すか Float Field からフォーカスを移動するまで新しい値を返しません。

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