C# Class FullInspector.Internal.NullablePropertyEditor

A property editor for nullable types.
Inheritance: IPropertyEditor, IPropertyEditorEditAPI
Mostra file Open project: jacobdufault/fullinspector

Public Methods

Method Description
CanEdit ( Type dataType ) : bool
Edit ( Rect region, GUIContent label, object element, fiGraphMetadata metadata ) : object
GetElementHeight ( GUIContent label, object element, fiGraphMetadata metadata ) : float
GetFoldoutHeader ( GUIContent label, object element ) : GUIContent
NullablePropertyEditor ( Type elementType ) : System
OnSceneGUI ( object element ) : object
TryCreate ( Type type, ICustomAttributeProvider attributes ) : IPropertyEditor

Method Details

CanEdit() public method

public CanEdit ( Type dataType ) : bool
dataType System.Type
return bool

Edit() public method

public Edit ( Rect region, GUIContent label, object element, fiGraphMetadata metadata ) : object
region UnityEngine.Rect
label UnityEngine.GUIContent
element object
metadata fiGraphMetadata
return object

GetElementHeight() public method

public GetElementHeight ( GUIContent label, object element, fiGraphMetadata metadata ) : float
label UnityEngine.GUIContent
element object
metadata fiGraphMetadata
return float

GetFoldoutHeader() public method

public GetFoldoutHeader ( GUIContent label, object element ) : GUIContent
label UnityEngine.GUIContent
element object
return UnityEngine.GUIContent

NullablePropertyEditor() public method

public NullablePropertyEditor ( Type elementType ) : System
elementType System.Type
return System

OnSceneGUI() public method

public OnSceneGUI ( object element ) : object
element object
return object

TryCreate() public static method

public static TryCreate ( Type type, ICustomAttributeProvider attributes ) : IPropertyEditor
type System.Type
attributes ICustomAttributeProvider
return IPropertyEditor