docs.unity3d.com
    目次を表示する/隠す

    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(Boolean)
    ComponentInspector.GetDisplayTitle()
    ComponentInspector.GetToolTip()
    ComponentInspector.HasDisplayProperties()
    Namespace: UnityEditor.MARS
    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 sealed override void OnInspectorGUI()
    Overrides
    ComponentInspector.OnInspectorGUI()

    OnSceneGUI()

    This method is called when drawing in the scene view.

    Declaration
    public sealed override 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()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)