Input
Last updated
Last updated
You can use input nodes to respond to user inputs. For more information, refer to the Input page in the Unity documentation.
You can use the mouse input nodes to branch a flow based on mouse button states.
Inputs:
Enter
Flow
Flow to activate the node.
Outputs:
Exit
Flow
Continue the activating flow.
Left Click
Flow
Continue the activating flow based on the state of the left mouse button.
Middle Click
Flow
Continue the activating flow based on the state of the middle mouse button.
Right Click
Flow
Continue the activating flow based on the state of the right mouse button.
Available nodes:
Get Mouse Button
Branches flows when the mouse buttons are held down.
Get Mouse Button Down
Branches flows in the frame when a mouse buttons is pressed.
Get Mouse Button Up
Branches flows in the frame when a mouse button is released.
There are multiple nodes that you can use to get input states. The input get nodes have a similar arrangement of inputs and outputs, as described in the following sections.
Inputs:
<varies>
String
The name of the input to evaluate.
Outputs:
[Bool or Float] Out
Boolean or Float
For most nodes, a Boolean output indicates if the input is active. For example, if a key is pressed.
For the Get Axis
node, the output is a float that indicates the deflection of input thumbstick, trackpad, or similar.
Available nodes:
Get Button Down
Outputs true in the frame where the named button is pressed.
Get Button
Outputs true if the named button is held down.
Get Button Up
Outputs true in the frame where the named button is released.
Get Key Down
Outputs true in the frame where the named key is pressed.
Get Key
Outputs true if the named key is held down.
Get Key Up
Outputs true in the frame where the named key is released.
Get Axis
Outputs the amount of deflection in the named axis.