C# Класс FullInspector.Internal.ReflectedPropertyEditor

The general property editor that takes over when there is no specific override. This uses reflection to discover what values to edit.
Наследование: IPropertyEditor, IPropertyEditorEditAPI
Показать файл Открыть проект

Открытые методы

Метод Описание
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
OnSceneGUI ( object element ) : object
ReflectedPropertyEditor ( InspectedType metadata ) : System
TryCreate ( Type dataType, ICustomAttributeProvider attributes ) : IPropertyEditor

Приватные методы

Метод Описание
DrawLabel ( Rect region, GUIContent label ) : Rect

Draws a label at the given region. Returns an indented rectangle that can be used for drawing properties directly under the label.

EditButton ( Rect &region, object element, InspectedMethod method ) : void

A helper method that draws a button at the given region.

EditInspectedMember ( Rect &region, object element, InspectedMember member, fiGraphMetadata metadata ) : void
EditPropertiesButtons ( GUIContent label, Rect region, object element, fiGraphMetadata metadata ) : object

Draws the actual property editors.

EditProperty ( Rect &region, object element, InspectedProperty property, fiGraphMetadata metadata ) : void

A helper method that draws the inspector for a field/property at the given location.

HasLabel ( GUIContent label ) : bool

Returns true if the given GUIContent element contains any content.

ShouldAutoInstantiate ( ) : bool

This returns true if automatic instantiation should be enabled. Automatic instantiation gets disabled after the reflected editor has gone a x calls deep into itself in an attempt to prevent infinite recursion.

ShouldShowMemberDynamic ( object element, MemberInfo member ) : bool
UseCategories ( Dictionary categories ) : bool

Описание методов

CanEdit() публичный Метод

public CanEdit ( Type dataType ) : bool
dataType System.Type
Результат bool

Edit() публичный Метод

public Edit ( Rect region, GUIContent label, object element, fiGraphMetadata metadata ) : object
region Rect
label GUIContent
element object
metadata fiGraphMetadata
Результат object

GetElementHeight() публичный Метод

public GetElementHeight ( GUIContent label, object element, fiGraphMetadata metadata ) : float
label GUIContent
element object
metadata fiGraphMetadata
Результат float

GetFoldoutHeader() публичный Метод

public GetFoldoutHeader ( GUIContent label, object element ) : GUIContent
label GUIContent
element object
Результат GUIContent

OnSceneGUI() публичный Метод

public OnSceneGUI ( object element ) : object
element object
Результат object

ReflectedPropertyEditor() публичный Метод

public ReflectedPropertyEditor ( InspectedType metadata ) : System
metadata InspectedType
Результат System

TryCreate() публичный статический Метод

public static TryCreate ( Type dataType, ICustomAttributeProvider attributes ) : IPropertyEditor
dataType Type
attributes ICustomAttributeProvider
Результат IPropertyEditor