Navigation
API > API/Plugins > API/Plugins/ScriptableToolsFramework > API/Plugins/ScriptableToolsFramework/BaseTools > API/Plugins/ScriptableToolsFramework/BaseTools/UScriptableModularBehaviorTool
References
| Module | ScriptableToolsFramework |
| Header | /Engine/Plugins/Runtime/ScriptableToolsFramework/Source/ScriptableToolsFramework/Public/BaseTools/ScriptableModularBehaviorTool.h |
| Include | #include "BaseTools/ScriptableModularBehaviorTool.h" |
| Source | /Engine/Plugins/Runtime/ScriptableToolsFramework/Source/ScriptableToolsFramework/Private/BaseTools/ScriptableModularBehaviorTool.cpp |
UFUNCTION (BlueprintCallable, Category="ScriptableTool|Input",
Meta=(AdvancedDisplay="CaptureCheck, CapturePriority"))
void AddMultiKeyInputBehavior
(
FOnKeyStateToggleDelegate OnKeyPressed,
FOnKeyStateToggleDelegate OnKeyReleased,
TArray < FKey > Keys,
bool bRequireAllKeys,
const FMouseBehaviorModiferCheckDelegate CaptureCheck,
int CapturePriority
)
Remarks
AddMultiKeyInputBehavior implements a generic keyboard multi key listener behavior
Parameters
| Name | Description |
|---|---|
| OnKeyPressed | Callback when the target key(s) is pressed. Only triggers once if bRequireAllKeys is true. |
| OnKeyReleased | Callback when the target key(s) is pressed. Only triggers once if bRequireAllKeys is true. |
| Keys | Target keys to watch for |
| bRequireAllKeys | If true, all target keys must be pressed simultaniously to recieve press/release events. Otherwise, any and all keys can trigger events. |
| CaptureCheck | Only enable capture if returns true |
| CapturePriority | The priority is used to resolve situations where multiple behaviors want the same capture |