On this page
VisualScriptInputAction
Inherits: VisualScriptNode < Resource < Reference < Object
A Visual Script node returning a state of an action.
Description
VisualScriptInputAction can be used to check if an action is pressed or released.
Properties
Enumerations
enum Mode:
- MODE_PRESSED = 0 ---
Trueif action is pressed. - MODE_RELEASED = 1 ---
Trueif action is released (i.e. not pressed). - MODE_JUST_PRESSED = 2 ---
Trueon the frame the action was pressed. - MODE_JUST_RELEASED = 3 ---
Trueon the frame the action was released.
Property Descriptions
String action
Default |
|
Setter |
set_action_name(value) |
Getter |
get_action_name() |
Name of the action.
Mode mode
Default |
|
Setter |
set_action_mode(value) |
Getter |
get_action_mode() |
State of the action to check. See Mode for options.
© 2014–2022 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.4/classes/class_visualscriptinputaction.html