top of page

Compare Float Node

Behavior Tree Editor

Unity

Description

The compare float node takes two float references. The value of each float is compared in a specified statement. If the statement is true then the return is success, if the statement is false the return is failure. The node has no children.

Fields/Buttons

  • Float1 (float reference)  - The first float reference used in the statement.

  • Float2 (float reference)  - The second float reference used in the statement.

  • Comparison (enum) - The sign that will be used in the statement.  The possible signs are: equal, not equal, less than, greater than, less than or equal, greater than or equal.

Pipeline

Adding The Node:

Right click in the graph view of the behavior tree, select “CompareFloat” from the Node Menu.

bottom of page