docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RelationInspector

    Base inspector for a condition inspector that fulfills when two child entities are fulfilled as part of a Proxy Group

    Inheritance
    object
    ComponentInspector
    ConditionBaseInspector
    RelationInspector
    Inherited Members
    ConditionBaseInspector.k_UnboundedLabel
    ConditionBaseInspector.k_NoMinOrMaxWarning
    ConditionBaseInspector.k_SmallMinMaxRangeWarning
    ConditionBaseInspector.k_ButtonLabel
    ConditionBaseInspector.k_ButtonTooltip
    ConditionBaseInspector.m_HandleMode
    ConditionBaseInspector.conditionBase
    ConditionBaseInspector.targetTransform
    ConditionBaseInspector.entity
    ConditionBaseInspector.OnInspectorGUI()
    ConditionBaseInspector.UpdateHandleMode()
    ConditionBaseInspector.OnSceneGUI()
    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 RelationInspector : ConditionBaseInspector

    Fields

    k_ChildNames

    Used to collect gui contents of child proxies names. Must be cleared before use.

    Declaration
    protected static readonly List<GUIContent> k_ChildNames
    Field Value
    Type Description
    List<GUIContent>

    k_ChildObjects

    Used to collect child proxies. Must be cleared before use.

    Declaration
    protected static readonly List<Proxy> k_ChildObjects
    Field Value
    Type Description
    List<Proxy>

    m_Child1Property

    Serialized property representing the first child entity's game object

    Declaration
    protected SerializedProperty m_Child1Property
    Field Value
    Type Description
    SerializedProperty

    m_Child2Property

    Serialized property representing the second child entity's game object

    Declaration
    protected SerializedProperty m_Child2Property
    Field Value
    Type Description
    SerializedProperty

    Properties

    child1Content

    First child's GUI content

    Declaration
    protected virtual GUIContent child1Content { get; }
    Property Value
    Type Description
    GUIContent

    child1Transform

    First child entity's transform

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

    child2Content

    Second child's GUI content

    Declaration
    protected virtual GUIContent child2Content { get; }
    Property Value
    Type Description
    GUIContent

    child2Transform

    Second child entity's transform

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

    proxyGroup

    Proxy group attached to the inspected condition

    Declaration
    protected ProxyGroup proxyGroup { get; }
    Property Value
    Type Description
    ProxyGroup

    relation

    Base relation object for the inspected relation condition

    Declaration
    protected RelationBase relation { get; }
    Property Value
    Type Description
    RelationBase

    Methods

    DrawChildOptions()

    Draw the options gui for the children in a relation

    Declaration
    protected bool DrawChildOptions()
    Returns
    Type Description
    bool

    true if the values for the children change from a GUI change

    OnConditionInspectorGUI()

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

    Declaration
    protected override void OnConditionInspectorGUI()
    Overrides
    ConditionBaseInspector.OnConditionInspectorGUI()

    OnConditionSceneGUI()

    Condition specific on scene GUI drawing and interaction

    Declaration
    protected override void OnConditionSceneGUI()
    Overrides
    ConditionBaseInspector.OnConditionSceneGUI()

    OnEnable()

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

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

    RefreshChildren()

    Refresh the children objects of the relation

    Declaration
    protected void RefreshChildren()
    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)