Class BaseEditor<T>
Inheritance
UnityEditor.Editor
BaseEditor<T>
Syntax
public class BaseEditor<T> : UnityEditor.Editor where T : class
Type Parameters
Properties
Target
Declaration
protected T Target { get; }
Property Value
Methods
BeginInspector()
Declaration
protected virtual void BeginInspector()
DrawPropertyInInspector(SerializedProperty)
Declaration
protected virtual void DrawPropertyInInspector(SerializedProperty p)
Parameters
Type |
Name |
Description |
SerializedProperty |
p |
|
DrawRemainingPropertiesInInspector()
Declaration
protected void DrawRemainingPropertiesInInspector()
ExcludeProperty(String)
Declaration
protected void ExcludeProperty(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
FieldPath<TValue>(Expression<Func<T, TValue>>)
Declaration
protected string FieldPath<TValue>(Expression<Func<T, TValue>> expr)
Parameters
Type |
Name |
Description |
Expression<Func<T, TValue>> |
expr |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
FindAndExcludeProperty<TValue>(Expression<Func<T, TValue>>)
Declaration
protected SerializedProperty FindAndExcludeProperty<TValue>(Expression<Func<T, TValue>> expr)
Parameters
Type |
Name |
Description |
Expression<Func<T, TValue>> |
expr |
|
Returns
Type |
Description |
SerializedProperty |
|
Type Parameters
FindProperty<TValue>(Expression<Func<T, TValue>>)
Declaration
protected SerializedProperty FindProperty<TValue>(Expression<Func<T, TValue>> expr)
Parameters
Type |
Name |
Description |
Expression<Func<T, TValue>> |
expr |
|
Returns
Type |
Description |
SerializedProperty |
|
Type Parameters
GetExcludedPropertiesInInspector()
Declaration
protected virtual List<string> GetExcludedPropertiesInInspector()
Returns
Type |
Description |
List<System.String> |
|
OnInspectorGUI()
Declaration
public override void OnInspectorGUI()