IVariableCondition
Interface for the built-in condition that compares a graph variable against a constant value.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Interface
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public interface IVariableCondition : ICondition
Remarks
A variable condition records the variable to compare, the comparison operator, and the constant value to compare against; it does not evaluate them. When traversing a transition's condition tree with IGroupCondition.Get, test each element for this interface to read variable conditions. IVariableCondition.Variable and IVariableCondition.Value are when no variable is assigned to the condition or when the assigned variable was deleted from the graph. This interface is implemented by Unity and is not intended to be implemented by user code.
nullProperties
Property | Description |
|---|---|
| Comparison | The comparison operator applied between the variable and IVariableCondition.Value. |
| Value | The constant value the variable is compared against, boxed as Object, or |
| Variable | The variable the condition compares, or |