C# Class RedBlueGames.NotNull.NotNullAttributeDrawer

Inheritance: UnityEditor.PropertyDrawer
Afficher le fichier Open project: redbluegames/unity-notnullattribute

Méthodes publiques

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

Gets the height that is passed into the rect in OnGUI.

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

Raises the GUI event and draws the property.

Private Methods

Méthode Description
BuildObjectField ( Rect drawArea, UnityEditor.SerializedProperty property, GUIContent label ) : void
BuildWarningRectangle ( Rect drawArea, UnityEditor.SerializedProperty property ) : void
IsNotWiredUp ( UnityEditor.SerializedProperty property ) : bool
IsPropertyNotNullInSceneAndPrefab ( UnityEditor.SerializedProperty property ) : bool
IsPropertyOnPrefab ( UnityEditor.SerializedProperty property ) : bool

Method Details

GetPropertyHeight() public méthode

Gets the height that is passed into the rect in OnGUI.
public GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
property UnityEditor.SerializedProperty Serialized property.
label UnityEngine.GUIContent Label for the property.
Résultat float

OnGUI() public méthode

Raises the GUI event and draws the property.
public OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void
position UnityEngine.Rect Position for the property.
property UnityEditor.SerializedProperty Serialized property.
label UnityEngine.GUIContent Label for the property.
Résultat void