EditorGUI.ObjectField Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUI
EditorGUI.ObjectField

static function ObjectField (position : Rect, obj : Object, objType : System.Type) : Object

static function ObjectField (position : Rect, label : string, obj : Object, objType : System.Type) : Object

static function ObjectField (position : Rect, label : GUIContent, obj : Object, objType : System.Type) : Object

Parameters

NameDescription
position Rectangle on the screen to use for the field.
label Optional label in front of the field.
obj The object the field shows.
objType The type of the object.

Returns

Object - The object that has been set by the user.

Description

Make an object drop slot field.