C# Class INPCBindingEditor, ugui-mvvm

Inheritance: Editor
显示文件 Open project: jbruening/ugui-mvvm Class Usage Examples

Public Methods

Method Description
DrawCRefProp ( UnityEditor.SerializedProperty property, GUIContent label, Type filter, bool resolveDataContext = true ) : void

draw an INPCBinding.ComponentPath property

DrawCRefProp ( UnityEditor.SerializedProperty property, GUIContent label, bool resolveDataContext = true ) : void
DrawComponentEvents ( UnityEditor.SerializedProperty component, UnityEditor.SerializedProperty eventProperty ) : int

Draw all UnityEventBase fields

DrawCrefEvents ( UnityEditor.SerializedProperty crefProperty, UnityEditor.SerializedProperty eventProperty ) : int

Draw all UnityEventBase

GetAllFields ( Type t ) : IEnumerable
GetCPathProperties ( UnityEditor.SerializedProperty property, UnityEditor.SerializedProperty &component, UnityEditor.SerializedProperty &path ) : void
GetEvent ( Component component, UnityEditor.SerializedProperty eventProperty ) : UnityEventBase
GetField ( Type t, string name ) : FieldInfo
OnInspectorGUI ( ) : void

Private Methods

Method Description
FigureViewBinding ( INPCBinding binding ) : void
FigureViewBindings ( ) : void
FirstOrDefault ( UnityEditor.SerializedProperty prop, Predicate predicate, bool descendIntoChildren = false ) : UnityEditor.SerializedProperty
IsEventType ( Type type ) : bool
OnPostProcessScene ( ) : void
PathTo ( Component component ) : string
PathTo ( Transform transform ) : string

Method Details

DrawCRefProp() public static method

draw an INPCBinding.ComponentPath property
public static DrawCRefProp ( UnityEditor.SerializedProperty property, GUIContent label, Type filter, bool resolveDataContext = true ) : void
property UnityEditor.SerializedProperty
label GUIContent
filter Type
resolveDataContext bool
return void

DrawCRefProp() public static method

public static DrawCRefProp ( UnityEditor.SerializedProperty property, GUIContent label, bool resolveDataContext = true ) : void
property UnityEditor.SerializedProperty
label GUIContent
resolveDataContext bool
return void

DrawComponentEvents() public static method

Draw all UnityEventBase fields
public static DrawComponentEvents ( UnityEditor.SerializedProperty component, UnityEditor.SerializedProperty eventProperty ) : int
component UnityEditor.SerializedProperty
eventProperty UnityEditor.SerializedProperty
return int

DrawCrefEvents() public static method

Draw all UnityEventBase
public static DrawCrefEvents ( UnityEditor.SerializedProperty crefProperty, UnityEditor.SerializedProperty eventProperty ) : int
crefProperty UnityEditor.SerializedProperty
eventProperty UnityEditor.SerializedProperty
return int

GetAllFields() public static method

public static GetAllFields ( Type t ) : IEnumerable
t Type
return IEnumerable

GetCPathProperties() public static method

public static GetCPathProperties ( UnityEditor.SerializedProperty property, UnityEditor.SerializedProperty &component, UnityEditor.SerializedProperty &path ) : void
property UnityEditor.SerializedProperty
component UnityEditor.SerializedProperty
path UnityEditor.SerializedProperty
return void

GetEvent() public static method

public static GetEvent ( Component component, UnityEditor.SerializedProperty eventProperty ) : UnityEventBase
component Component
eventProperty UnityEditor.SerializedProperty
return UnityEventBase

GetField() public static method

public static GetField ( Type t, string name ) : FieldInfo
t Type
name string
return FieldInfo

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void