Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseTools
Inheritance Hierarchy
- UObject
- UInputBehavior
- UAnyButtonInputBehavior
- UBrushAdjusterInputBehavior
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseTools/BaseBrushTool.h |
| Include | #include "BaseTools/BaseBrushTool.h" |
Syntax
UCLASS ()
class UBrushAdjusterInputBehavior : public UAnyButtonInputBehavior
Remarks
A behavior that captures a keyboard hotkey to enter a sub-mode "bAdjustingBrush" while the key is pressed. The target tool must call OnDragStart() and OnDragUpdate() to feed the screen coordinates of the mouse for the duration of the behavior. And use "GetIsBrushBeingAdjusted" to pause/disable the brush motion while it is being adjusted.
OnDragStart() defines the starting location of an adjustment OnDragUpdate() adjusts the brush strength and radius based on the magnitude of the screen coordinate delta in the vertical and horizontal directions respectively.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DrawHUD
(
FCanvas* Canvas, |
||
| void | Initialize
(
UBaseBrushTool* InBrushTool |
||
| bool | |||
| void | OnDragStart
(
FVector2D InScreenPosition |
||
| void | OnDragUpdate
(
FVector2D InScreenPosition |
||
| void | SetSizeAdjustSpeed
(
float InSizeSpeed |
||
| void | SetStrengthAdjustSpeed
(
float InStrengthSpeed |
Overridden from UAnyButtonInputBehavior
| Type | Name | Description | |
|---|---|---|---|
| bool | IsPressed
(
const FInputDeviceState& input |
||
| bool | IsReleased
(
const FInputDeviceState& input |
Overridden from UInputBehavior
| Type | Name | Description | |
|---|---|---|---|
| FInputCaptureUpdate | BeginCapture
(
const FInputDeviceState& InputState, |
Called after WantsCapture() returns a capture request that was accepted | |
| void | ForceEndCapture
(
const FInputCaptureData& CaptureData |
If this is called, the Behavior has forcibly lost capture (eg due to app losing focus for example) and needs to clean up accordingly | |
| EInputDevices | UAnyButtonInputBehavior. | ||
| FInputCaptureUpdate | UpdateCapture
(
const FInputDeviceState& InputState, |
Called for each new input event during a capture sequence. | |
| FInputCaptureRequest | WantsCapture
(
const FInputDeviceState& InputState |
Given the input state, does this Behavior want to begin capturing some input devices? |