EditorGUILayout.ObjectFieldstatic function ObjectField (obj : Object, objType : System.Type, allowSceneObjects : boolean, params options : GUILayoutOption[]) : Objectstatic function ObjectField (label : String, obj : Object, objType : System.Type, allowSceneObjects : boolean, params options : GUILayoutOption[]) : Objectstatic function ObjectField (label : GUIContent, obj : Object, objType : System.Type, allowSceneObjects : boolean, params options : GUILayoutOption[]) : ObjectParameters
ReturnsObject - The object that has been set by the user. DescriptionMake an object field. You can assign objects either by drag'n drop objects or by selecting an object using the 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.
// EditorScript that quickly searchs for a help page
|

