Conditional Catalog

Use the editor’s task selector to search by name or category.

Task Supported behavior
Animation Is Animation Playing Checks if an animation is currently playing on the Animation component.
Animator Is Animation Playing Checks if an animation is currently playing on the Animator.
Bool Comparison Compares two boolean values.
Compare Behavior Tree Status Checks if another behavior tree is in a specific status.
Compare Layer Checks if a GameObject is on a specific layer using LayerMask.
Compare Tag Checks if a GameObject has a specific tag.
Counter Checks if a counter has reached a threshold. Supports greater than, less than, and equal to comparisons.
Distance Comparison Compares the distance between two positions or GameObjects.
Float Comparison Compares two float values.
Float In Range Checks if a float value is within a min/max range.
Game Object Comparison Compares two GameObject values.
Has Entered Collision Returns success when a collision starts. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).
Has Entered Collision2 D Returns success when a 2D collision starts. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).
Has Entered Trigger Returns success when an object enters the trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).
Has Entered Trigger2 D Returns success when an object enters the 2D trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).
Has Exited Collision Returns success when a collision ends. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).
Has Exited Collision2 D Returns success when a 2D collision ends. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).
Has Exited Trigger Returns success when an object exits the trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).
Has Exited Trigger2 D Returns success when an object exits the 2D trigger. This task will only receive the physics callback if it is being reevaluated (with a conditional abort or under a parallel task).
Has Received Event Returns success as soon as the event specified by eventName has been received.
Has Value Returns true if the specified variable has a value.
Int Comparison Compares two integer values.
Int In Range Checks if an integer value is within a min/max range.
Is Behavior Tree Active Returns true if the specified behavior tree is active.
Is Element In List Checks if an element is in the list.
Is Element Not In List Checks if an element is not in the list.
Is Empty Checks if the list is empty.
Is Mouse Over Object Checks if the mouse is over a specific GameObject using a raycast from the camera.
Is Not Empty Checks if the list is not empty.
Is Not Null Checks if a SharedVariable value is not null.
Is Null Checks if a SharedVariable value is null.
Player Prefs Float Comparison Compares a PlayerPrefs float value with another value.
Player Prefs Has Key Checks if a PlayerPrefs key exists.
Player Prefs Int Comparison Compares a PlayerPrefs integer value with another value.
Player Prefs String Comparison Compares a PlayerPrefs string value with another value.
Random Probability The random probability task will return success when the random probability is below the succeed probability. It will otherwise return failure.
Shared Random Probability The random probability task will return success when the random probability is below the succeed probability. It will otherwise return failure.
Stacked Conditional Use a Stacked Conditional to group several short questions into one node. Illustrated guide.
String Comparison Compares two string values.
Vector2 Comparison Compares two Vector2 values.
Vector2 Int Comparison Compares two Vector2Int values.
Vector3 Comparison Compares two Vector3 values.
Vector3 Int Comparison Compares two Vector3Int values.
Vector4 Comparison Compares two Vector4 values.

Return to the task guide.

Settings reference

Component or task Setting Default Description
Has Received Event settings Event Name Default The name of the event that should be registered.
Global Event Default Is the event a global event?
Receive Mode Latest Specifies whether pending events are coalesced to the latest event or queued across task executions.
Max Queue Size 0 The maximum number of pending events. Set to 0 for an unlimited queue. Constraint: Min(0).
Queue Overflow Policy Drop Oldest Specifies which event should be discarded when the queue is full.
Stored Value 1 Default Optionally store the first sent argument.
Stored Value 2 Default Optionally store the second sent argument.
Stored Value 3 Default Optionally store the third sent argument.
Options — Receive Mode values: Latest, Queued.
Options — Queue Overflow Policy values: Drop Oldest, Drop Newest.