Int
Int cast nodes
You can use an int cast node to convert in an integer value to a float or a string.
Inputs:
Input
Integer
The value to be converted.
Outputs:
Output
<varies> [editable]
The converted value. The output depends on the chosen node, and is either a float or a string.
Logic Int Changed
Outputs true
in the frame where the input value changes.
Inputs:
Input
Integer
The integer value to monitor.
Outputs:
Output
Boolean
True when the Input
changes, but resets to false at the end of the frame.
Int Constant
Outputs an integer value. An AFX graph cannot change the value of this node.
You can open an AFX graph to change the value of this node in the Unity Editor.
Outputs:
Output
Int [editable]
An integer number.
Generate Random Int
Generates a random number between Min (inclusive) and Max (exclusive). For more information, refer to Random.Range in the Unity documentation.
Inputs:
Enter
Flow
Flow to activate the node.
Min
Integer [editable]
The minimum value for the randomly generated number.
Max
Integer [editable]
The maximum value for the randomly generated number will be Max-1.
Outputs:
Exit
Flow
Continue the activating flow.
Output
Integer
The randomly generated number.
Get Int
Converts a reference to a int component to a integer value.
Inputs:
Int Component
Int Component
Reference to a int component.
Outputs:
Output
Integer
The value of the int component.
Invert Int
Inverts an integer value. Essentially changes the sign of the integer from positive to negative or from negative to positive.
Inputs:
Input
Integer
The value to be inverted.
Outputs:
Output
Integer
The inverted value of the Input
.
Set Int
Set the value of an int object when activated by a flow.
Inputs:
Enter
Flow
Flow to activate the node
Int Component
Object
Reference to the int object for which the value will be set.
Value In
Integer [editable]
The value to be applied to the int component. Either the value provided to the input port or the value set in the field.
Outputs:
Exit
Flow
Continue the activating flow.
Output
Integer
Either the value provided to the Value In
input port or the value set in the field.
Last updated