UnityEditor.CustomPropertyDrawer
for UnityEngine.Object
.
More...
Inherits PropertyDrawer.
Public Member Functions | |
override void | OnGUI (Rect position, SerializedProperty property, GUIContent label) |
OnGUI, draw inspector of the property. More... | |
Static Public Member Functions | |
static Object | ObjectField (Rect position, Object obj, Type objType=null, bool allowSceneObjects=true) |
Draw the enhance object field without the prefix label. More... | |
UnityEditor.CustomPropertyDrawer
for UnityEngine.Object
.
Enhance the object field support to:
|
static |
Draw the enhance object field without the prefix label.
position | Rectangle on the screen to use for the field. |
obj | The object the field shows. |
objType | The type of the objects that can be assigned. |
allowSceneObjects | Allow assigning Scene objects. |
override void OnGUI | ( | Rect | position, |
SerializedProperty | property, | ||
GUIContent | label | ||
) |
OnGUI, draw inspector of the property.
position | Position. |
property | Property. |
label | Label. |