Navigation
API > API/Plugins > API/Plugins/ScriptableToolsFramework
A Scriptable tool base blueprint class which provides support for user defined mouse interaction behaviors
| Name | UScriptableModularBehaviorTool |
| Type | class |
| Header File | /Engine/Plugins/Runtime/ScriptableToolsFramework/Source/ScriptableToolsFramework/Public/BaseTools/ScriptableModularBehaviorTool.h |
| Include Path | #include "BaseTools/ScriptableModularBehaviorTool.h" |
Syntax
UCLASS (MinimalAPI)
class UScriptableModularBehaviorTool : public UScriptableInteractiveTool
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → UScriptableInteractiveTool → UScriptableModularBehaviorTool
Implements Interfaces
Derived Classes
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAltModifier | bool | BaseTools/ScriptableModularBehaviorTool.h | ||
| bCtrlModifier | bool | BaseTools/ScriptableModularBehaviorTool.h | ||
| bShiftModifier | bool | BaseTools/ScriptableModularBehaviorTool.h | ||
| ClickDragBehaviors | TArray< TObjectPtr< UScriptableToolClickDragBehavior > > | BaseTools/ScriptableModularBehaviorTool.h |
|
|
| DoubleClickBehaviors | TArray< TObjectPtr< UScriptableToolDoubleClickBehavior > > | BaseTools/ScriptableModularBehaviorTool.h |
|
|
| KeyInputBehaviors | TArray< TObjectPtr< UScriptableToolKeyInputBehavior > > | BaseTools/ScriptableModularBehaviorTool.h |
|
|
| MouseHoverBehaviors | TArray< TObjectPtr< UScriptableToolMouseHoverBehavior > > | BaseTools/ScriptableModularBehaviorTool.h |
|
|
| MouseWheelBehaviors | TArray< TObjectPtr< UScriptableToolMouseWheelBehavior > > | BaseTools/ScriptableModularBehaviorTool.h |
|
|
| MultiClickSequenceBehaviors | TArray< TObjectPtr< UScriptableToolClickSequenceBehavior > > | BaseTools/ScriptableModularBehaviorTool.h |
|
|
| SingleClickBehaviors | TArray< TObjectPtr< UScriptableToolSingleClickBehavior > > | BaseTools/ScriptableModularBehaviorTool.h |
|
|
| SingleClickOrDragBehaviors | TArray< TObjectPtr< UScriptableToolSingleClickOrDragBehavior > > | BaseTools/ScriptableModularBehaviorTool.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddClickDragBehavior
(
const FTestCanBeginClickDragSequenceDelegate CanBeginClickDragSequence, |
Implements a standard "button-click-drag"-style input behavior. | BaseTools/ScriptableModularBehaviorTool.h |
|
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 OnHitByClick(). 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. | BaseTools/ScriptableModularBehaviorTool.h |
|
void AddMouseHoverBehavior
(
FBeginHoverSequenceHitTestDelegate BeginHoverSequenceHitTest, |
BaseTools/ScriptableModularBehaviorTool.h |
|
|
void AddMouseWheelBehavior
(
FTestShouldRespondToMouseWheelDelegate TestShouldRespondToMouseWheel, |
BaseTools/ScriptableModularBehaviorTool.h |
|
|
void AddMultiClickSequenceBehavior
(
FOnBeginSequencePreviewDelegate OnBeginSequencePreview, |
MultiClickSequenceBehavior implements a generic multi-click-sequence input behavior. | BaseTools/ScriptableModularBehaviorTool.h |
|
void AddMultiKeyInputBehavior
(
FOnKeyStateToggleDelegate OnKeyPressed, |
BaseTools/ScriptableModularBehaviorTool.h | ||
void AddMultiKeyInputBehavior
(
FOnKeyStateToggleDelegate OnKeyPressed, |
AddMultiKeyInputBehavior implements a generic keyboard multi key listener behavior | BaseTools/ScriptableModularBehaviorTool.h |
|
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 OnHitByClick(). 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. | BaseTools/ScriptableModularBehaviorTool.h |
|
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. | BaseTools/ScriptableModularBehaviorTool.h |
|
void AddSingleKeyInputBehavior
(
FOnKeyStateToggleDelegate OnKeyPressed, |
BaseTools/ScriptableModularBehaviorTool.h | ||
void AddSingleKeyInputBehavior
(
FOnKeyStateToggleDelegate OnKeyPressed, |
AddSingleKeyInputBehavior implements a generic keyboard key listener behavior | BaseTools/ScriptableModularBehaviorTool.h |
|
FScriptableToolModifierStates GetActiveModifiers() |
BaseTools/ScriptableModularBehaviorTool.h |
|
|
bool IsAltDown() |
BaseTools/ScriptableModularBehaviorTool.h |
|
|
bool IsCtrlDown() |
BaseTools/ScriptableModularBehaviorTool.h |
|
|
bool IsShiftDown () |
Modifer Buttons Support | BaseTools/ScriptableModularBehaviorTool.h |
|
void OnUpdateModifierState
(
int ModifierID, |
BaseTools/ScriptableModularBehaviorTool.h |