docs.unity3d.com
Search Results for

    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(Object, Editor)
    ComponentInspector.OnDisable()
    ComponentInspector.OnInternalInspectorGUI()
    ComponentInspector.DrawDefaultInspector()
    ComponentInspector.GetParameters(bool)
    ComponentInspector.GetDisplayTitle()
    ComponentInspector.GetToolTip()
    ComponentInspector.HasDisplayProperties()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.MARS
    Assembly: Unity.MARS.Editor.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public abstract class ConditionBaseInspector : ComponentInspector

    Fields

    k_ButtonLabel

    Button label for editing a condition

    Declaration
    protected const string k_ButtonLabel = "Edit Condition"
    Field Value
    Type Description
    string

    k_ButtonTooltip

    Button tooltip for editing a condition

    Declaration
    protected const string k_ButtonTooltip = "Toggle scene handles for this condition."
    Field Value
    Type Description
    string

    k_NoMinOrMaxWarning

    Warning text for minimum or maximum set

    Declaration
    protected const string k_NoMinOrMaxWarning = "This condition has neither a minimum nor a maximum, and therefore it has no effect."
    Field Value
    Type Description
    string

    k_SmallMinMaxRangeWarning

    Warning text for small range between the minimum and maximum values

    Declaration
    protected const string k_SmallMinMaxRangeWarning = "This condition's min/max range is very small, and therefore it will be hard to satisfy."
    Field Value
    Type Description
    string

    k_UnboundedLabel

    GUI label text for unbounded

    Declaration
    protected const string k_UnboundedLabel = "Unbounded"
    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()
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)