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 AddMouseWheelBehavior
(
FTestShouldRespondToMouseWheelDelegate TestShouldRespondToMouseWheel,
FOnMouseWheelScrollUpDelegate OnMouseWheelScrollUp,
FOnMouseWheelScrollDownDelegate OnMouseWheelScrollDown,
FMouseBehaviorModiferCheckDelegate CaptureCheck,
int CapturePriority
)
Parameters
| Name | Description |
|---|---|
| TestShouldRespondToMouseWheel | The result's bHit property determines whether the mouse wheel action will be captured. (Perhaps the mouse wheel only does something when mousing over some part of a mesh) |
| OnMouseWheelScrollUp | CurrentPos device position/ray at point where mouse wheel is engaged |
| OnMouseWheelScrollDown | CurrentPos device position/ray at point where mouse wheel is engaged |
| CaptureCheck | Only enable capture if returns true |
| CapturePriority | The priority is used to resolve situations where multiple behaviors want the same capture |