Class BaseEditor<T>
A convenience base class for making inspector editors.
Inheritance
BaseEditor<T>
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Syntax
public class BaseEditor<T> : Editor, IPreviewable, IToolModeOwner where T : class
Type Parameters
| Name |
Description |
| T |
The class we're editing
|
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
DrawRemainingPropertiesInInspector()
Declaration
protected void DrawRemainingPropertiesInInspector()
ExcludeProperty(String)
Declaration
protected void ExcludeProperty(string propertyName)
Parameters
| Type |
Name |
Description |
| String |
propertyName |
|
FieldPath<TValue>(Expression<Func<T, TValue>>)
Declaration
protected string FieldPath<TValue>(Expression<Func<T, TValue>> expr)
Parameters
Returns
Type Parameters
FindAndExcludeProperty<TValue>(Expression<Func<T, TValue>>)
Declaration
protected SerializedProperty FindAndExcludeProperty<TValue>(Expression<Func<T, TValue>> expr)
Parameters
Returns
Type Parameters
FindProperty<TValue>(Expression<Func<T, TValue>>)
Declaration
protected SerializedProperty FindProperty<TValue>(Expression<Func<T, TValue>> expr)
Parameters
Returns
Type Parameters
GetExcludedPropertiesInInspector()
Declaration
protected virtual List<string> GetExcludedPropertiesInInspector()
Returns
OnInspectorGUI()
Declaration
public override void OnInspectorGUI()
Overrides