Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseBehaviors
Inheritance Hierarchy
- UObject
- UInputBehavior
- UAnyButtonInputBehavior
- USingleClickInputBehavior
- ULocalSingleClickInputBehavior
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseBehaviors/SingleClickBehavior.h |
| Include | #include "BaseBehaviors/SingleClickBehavior.h" |
Syntax
UCLASS (MinimalAPI)
class ULocalSingleClickInputBehavior :
public USingleClickInputBehavior ,
public IClickBehaviorTarget
Remarks
An implementation of USingleClickInputBehavior that also implements IClickBehaviorTarget directly, via a set of local lambda functions. To use/customize this class, the client replaces the lambda functions with their own. This avoids having to create a separate IClickBehaviorTarget implementation for trivial use-cases.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TUniqueFunction< FInputRayHit(const FInputDeviceRay &)> | IsHitByClickFunc | Lambda implementation of IsHitByClick | |
| TUniqueFunction< void(const FInputDeviceRay &)> | OnClickedFunc | Lambda implementation of OnClicked | |
| TUniqueFunction< void(int, bool) > | OnUpdateModifierStateFunc | Lambda implementation of OnUpdateModifierState |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize () |
Call this to initialize the class |
Overridden from USingleClickInputBehavior
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize
(
IClickBehaviorTarget* Target |
Initialize this behavior with the given Target |
Overridden from IClickBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | IsHitByClick
(
const FInputDeviceRay& ClickPos |
Test if target is hit by a click | |
| void | OnClicked
(
const FInputDeviceRay& ClickPos |
Notify Target that click ocurred |
Overridden from IModifierToggleBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| void | OnUpdateModifierState
(
int ModifierID, |
IModifierToggleBehaviorTarget implementation. |