Navigation
API > API/Plugins > API/Plugins/ScriptableToolsFramework > API/Plugins/ScriptableToolsFramework/BaseTools
Inheritance Hierarchy
- UObject
- IInputBehaviorSource
- UInteractiveTool
- UScriptableInteractiveTool
- UScriptableModularBehaviorTool
- UEditorScriptableModularBehaviorTool
References
| Module | ScriptableToolsFramework |
| Header | /Engine/Plugins/Runtime/ScriptableToolsFramework/Source/ScriptableToolsFramework/Public/BaseTools/ScriptableModularBehaviorTool.h |
| Include | #include "BaseTools/ScriptableModularBehaviorTool.h" |
Syntax
UCLASS ()
class UScriptableModularBehaviorTool : public UScriptableInteractiveTool
Remarks
A Scriptable tool base blueprint class which provides support for user defined mouse interaction behaviors
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddClickDragBehavior
(
const FTestCanBeginClickDragSequenceDelegate CanBeginClickDragSequence, |
Implements a standard "button-click-drag"-style input behavior. | |
| void | AddDoubleClickBehavior
(
const FTestIfHitByClickDelegate IfHitByClick, |
Implements a standard "button-click"-style input behavior The state machine works as follows: 1) on input-device-button-press, hit-test the target. If hit, begin capture 2) on input-device-button-release, hit-test the target. If hit, call OnClicked(). If not hit, ignore click.The second hit-test is required to allow the click to be "cancelled" by moving away from the target. This is standard GUI behavior. You can disable this second hit test using the HitTestOnRelease property. This is strongly discouraged. | |
| void | AddMouseHoverBehavior
(
FBeginHoverSequenceHitTestDelegate BeginHoverSequenceHitTest, |
||
| void | AddMouseWheelBehavior
(
FTestShouldRespondToMouseWheelDelegate TestShouldRespondToMouseWheel, |
||
| void | AddMultiClickSequenceBehavior
(
FOnBeginSequencePreviewDelegate OnBeginSequencePreview, |
MultiClickSequenceBehavior implements a generic multi-click-sequence input behavior. | |
| void | AddMultiKeyInputBehavior
(
FOnKeyStateToggleDelegate OnKeyPressed, |
AddMultiKeyInputBehavior implements a generic keyboard multi key listener behavior | |
| void | AddSingleClickBehavior
(
const FTestIfHitByClickDelegate IfHitByClick, |
Implements a standard "button-click"-style input behavior The state machine works as follows: 1) on input-device-button-press, hit-test the target. If hit, begin capture 2) on input-device-button-release, hit-test the target. If hit, call OnClicked(). If not hit, ignore click.The second hit-test is required to allow the click to be "cancelled" by moving away from the target. This is standard GUI behavior. You can disable this second hit test using the HitTestOnRelease property. This is strongly discouraged. | |
| void | AddSingleClickOrDragBehavior
(
FTestIfHitByClickDelegate IfHitByClick, |
SingleClickOrDragBehavior is a combination of a SingleClickBehavior and ClickDragBehavior, and allows for the common UI interaction where a click-and-release does one action, but if the mouse is moved, then a drag interaction is started. | |
| void | AddSingleKeyInputBehavior
(
FOnKeyStateToggleDelegate OnKeyPressed, |
AddSingleKeyInputBehavior implements a generic keyboard key listener behavior | |
| FScriptableToolModifierStates | |||
| void | OnUpdateModifierState
(
int ModifierID, |
||
UPARAM
(
DisplayName |
Modifer Buttons Support | ||
UPARAM
(
DisplayName |
|||
UPARAM
(
DisplayName |