C# Class UnityEditor.PropertyDrawer

Base class to derive custom property drawers from. Use this to create custom drawers for your own Serializable classes or for script variables with custom PropertyAttributes.

Inheritance: GUIDrawer
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode Description
GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float

Override this method to specify how tall the GUI for this field is in pixels.

OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void

Override this method to make your own GUI for the property.

Méthodes protégées

Méthode Description
PropertyDrawer ( ) : System

Private Methods

Méthode Description
GetPropertyHeightSafe ( UnityEditor.SerializedProperty property, GUIContent label ) : float
OnGUISafe ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void

Method Details

GetPropertyHeight() public méthode

Override this method to specify how tall the GUI for this field is in pixels.

public GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
property UnityEditor.SerializedProperty The SerializedProperty to make the custom GUI for.
label UnityEngine.GUIContent The label of this property.
Résultat float

OnGUI() public méthode

Override this method to make your own GUI for the property.

public OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void
position UnityEngine.Rect Rectangle on the screen to use for the property GUI.
property UnityEditor.SerializedProperty The SerializedProperty to make the custom GUI for.
label UnityEngine.GUIContent The label of this property.
Résultat void

PropertyDrawer() protected méthode

protected PropertyDrawer ( ) : System
Résultat System