C# Class RedBlueGames.NotNull.NotNullAttributeDrawer

Inheritance: UnityEditor.PropertyDrawer
ファイルを表示 Open project: redbluegames/unity-notnullattribute

Public Methods

Method 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

Method 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 method

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.
return float

OnGUI() public method

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.
return void