Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

IVariableCondition

interface in Unity.GraphToolkit.Editor


Implements interfaces:ICondition

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Interface for the built-in condition that compares a graph variable against a constant value.

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 null 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.

Properties

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 null when no variable is assigned.
Variable The variable the condition compares, or null when no variable is assigned or the variable was deleted from the graph.