| label | フィールドのラベル |
| obj | フィールドを表示するオブジェクト |
| objType | 割り当てることができるオブジェクトの型 |
| allowSceneObjects | Allow assigning Scene objects. See Description for more info. |
| options | 指定してレイアウトオプションを渡すときのレイアウトオプションのリスト。ここで設定したものは style によって設定された値を上書きします。See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight. |
Object ユーザーによって設定された値
任意のオブジェクトの Type を表示するフィールドを作成します。
オブジェクトをドラッグアンドドロップするか Object Picker を使用してオブジェクトを選択するかのいずれかでオブジェクトを割り当てることができます。
Ensure that the allowSceneObjects parameter is false if the object reference is stored as part of an asset, since assets can't store references to objects in a Scene.
If the ObjectField is part of a custom Editor for a script component, use EditorUtility.IsPersistent() to check if the component is on an asset or a Scene object.
詳細は Editor クラスの例を参照してください。