docs.unity3d.com
    Show / Hide Table of Contents

    Class ConditionBaseInspector

    Base inspector for a condition that can be drawn in a component list editor.

    Inheritance
    Object
    ComponentInspector
    ConditionBaseInspector
    RelationInspector
    SpatialConditionInspector
    Inherited Members
    ComponentInspector.target
    ComponentInspector.serializedObject
    ComponentInspector.baseProperty
    ComponentInspector.activeProperty
    ComponentInspector.isDirty
    ComponentInspector.Repaint()
    ComponentInspector.CleanUp()
    ComponentInspector.EditorInspector
    ComponentInspector.Init(UnityEngine.Object, Editor)
    ComponentInspector.OnDisable()
    ComponentInspector.OnInternalInspectorGUI()
    ComponentInspector.DrawDefaultInspector()
    ComponentInspector.GetParameters(Boolean)
    ComponentInspector.GetDisplayTitle()
    ComponentInspector.GetToolTip()
    ComponentInspector.HasDisplayProperties()
    Namespace: UnityEditor.MARS
    Syntax
    public abstract class ConditionBaseInspector : ComponentInspector

    Fields

    k_ButtonLabel

    Button label for editing a condition

    Declaration
    protected const string k_ButtonLabel = null
    Field Value
    Type Description
    String

    k_ButtonTooltip

    Button tooltip for editing a condition

    Declaration
    protected const string k_ButtonTooltip = null
    Field Value
    Type Description
    String

    k_NoMinOrMaxWarning

    Warning text for minimum or maximum set

    Declaration
    protected const string k_NoMinOrMaxWarning = null
    Field Value
    Type Description
    String

    k_SmallMinMaxRangeWarning

    Warning text for small range between the minimum and maximum values

    Declaration
    protected const string k_SmallMinMaxRangeWarning = null
    Field Value
    Type Description
    String

    k_UnboundedLabel

    GUI label text for unbounded

    Declaration
    protected const string k_UnboundedLabel = null
    Field Value
    Type Description
    String

    m_HandleMode

    The current interaction mode for the condition

    Declaration
    protected ConditionBaseInspector.HandleMode m_HandleMode
    Field Value
    Type Description
    ConditionBaseInspector.HandleMode

    Properties

    conditionBase

    Base condition object for the inspected condition

    Declaration
    protected ConditionBase conditionBase { get; }
    Property Value
    Type Description
    ConditionBase

    entity

    MARS entity attached to the inspected condition

    Declaration
    protected MARSEntity entity { get; }
    Property Value
    Type Description
    MARSEntity

    targetTransform

    Transform of the inspected condition

    Declaration
    protected Transform targetTransform { get; }
    Property Value
    Type Description
    Transform

    Methods

    OnConditionInspectorGUI()

    Used to wrap the property drawers of the inspector inside a change check for Query updating.

    Declaration
    protected abstract void OnConditionInspectorGUI()

    OnConditionSceneGUI()

    Condition specific on scene GUI drawing and interaction

    Declaration
    protected abstract void OnConditionSceneGUI()

    OnEnable()

    This method is called when the object is created. Called after Init.

    Declaration
    public override void OnEnable()
    Overrides
    ComponentInspector.OnEnable()

    OnInspectorGUI()

    This method is called to draw the inspector GUI

    Declaration
    public override sealed void OnInspectorGUI()
    Overrides
    ComponentInspector.OnInspectorGUI()

    OnSceneGUI()

    This method is called when drawing in the scene view.

    Declaration
    public override sealed void OnSceneGUI()
    Overrides
    ComponentInspector.OnSceneGUI()

    UpdateHandleMode()

    Update the condition inspector's handle mode based on the adjusting state of the component

    Declaration
    protected void UpdateHandleMode()
    Back to top
    Terms of use
    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