Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

EditorGUILayout.PropertyField

マニュアルに切り替える
public static bool PropertyField(SerializedProperty property, params GUILayoutOption[] options);
public static bool PropertyField(SerializedProperty property, GUIContent label, params GUILayoutOption[] options);
public static bool PropertyField(SerializedProperty property, bool includeChildren, params GUILayoutOption[] options);
public static bool PropertyField(SerializedProperty property, GUIContent label, bool includeChildren, params GUILayoutOption[] options);

パラメーター

property フィールドをつくる SerializedProperty
label 使用するオプションのラベル。プロパティーのラベルを指定しない場合、それ自身が使用されます。ラベルを表示しないように GUIContent.none を使用します。
includeChildren True の場合、子を含むプロパティーが描画されます。それ以外の場合、それ自身を制御するだけです (下に何もない折り込みのように) 。
options 特別なレイアウト対応をするためのレイアウトオプションリスト。ここに渡された値は style で定義された設定を上書きします。
See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

戻り値

bool プロパティーが子を持ち、展開され、includeChildren が False に設定されている場合は True 。そうでなければ False 。

説明

SerializedProperty のフィールドを作成します。