Class ConditionBaseInspector
Base inspector for a condition that can be drawn in a component list editor.
Inherited Members
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
OnInspectorGUI()
This method is called to draw the inspector GUI
Declaration
public override sealed void OnInspectorGUI()
Overrides
OnSceneGUI()
This method is called when drawing in the scene view.
Declaration
public override sealed void OnSceneGUI()
Overrides
UpdateHandleMode()
Update the condition inspector's handle mode based on the adjusting state of the component
Declaration
protected void UpdateHandleMode()