Class RelationInspector
Base inspector for a condition inspector that fulfills when two child entities are fulfilled as part of a Proxy Group
Inherited Members
Namespace: UnityEditor.MARS
Syntax
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 |
---|---|
Boolean |
|
OnConditionInspectorGUI()
Used to wrap the property drawers of the inspector inside a change check for Query updating.
Declaration
protected override void OnConditionInspectorGUI()
Overrides
OnConditionSceneGUI()
Condition specific on scene GUI drawing and interaction
Declaration
protected override void OnConditionSceneGUI()
Overrides
OnEnable()
This method is called when the object is created. Called after Init.
Declaration
public override void OnEnable()
Overrides
RefreshChildren()
Refresh the children objects of the relation
Declaration
protected void RefreshChildren()