Class BaseEditor<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class BaseEditor<T>

    Inheritance
    UnityEditor.Editor
    BaseEditor<T>
    CinemachineColliderEditor
    CinemachineConfinerEditor
    CinemachineHardLockToTargetEditor
    CinemachineHardLookAtEditor
    CinemachinePOVEditor
    CinemachineSameAsFollowTargetEditor
    CinemachineStoryboardEditor
    CinemachineVirtualCameraBaseEditor<T>
    Namespace: Cinemachine.Editor
    Syntax
    public class BaseEditor<T> : UnityEditor.Editor where T : class
    Type Parameters
    Name Description
    T

    Properties

    Target

    Declaration
    protected T Target { get; }
    Property Value
    Type Description
    T

    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
    Name Description
    TValue

    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
    Name Description
    TValue

    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
    Name Description
    TValue

    GetExcludedPropertiesInInspector()

    Declaration
    protected virtual List<string> GetExcludedPropertiesInInspector()
    Returns
    Type Description
    List<System.String>

    OnInspectorGUI()

    Declaration
    public override void OnInspectorGUI()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023