Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
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.
| Name | ULocalSingleClickInputBehavior |
| Type | class |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseBehaviors/SingleClickBehavior.h |
| Include Path | #include "BaseBehaviors/SingleClickBehavior.h" |
Syntax
UCLASS (MinimalAPI)
class ULocalSingleClickInputBehavior :
public USingleClickInputBehavior ,
public IClickBehaviorTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInputBehavior → UAnyButtonInputBehavior → USingleClickInputBehavior → ULocalSingleClickInputBehavior
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| IsHitByClickFunc | TUniqueFunction< FInputRayHit(const FInputDeviceRay &)> | Lambda implementation of IsHitByClick | BaseBehaviors/SingleClickBehavior.h | |
| OnClickedFunc | TUniqueFunction< void(const FInputDeviceRay &)> | Lambda implementation of OnClicked | BaseBehaviors/SingleClickBehavior.h | |
| OnUpdateModifierStateFunc | TUniqueFunction< void(int, bool) > | Lambda implementation of OnUpdateModifierState | BaseBehaviors/SingleClickBehavior.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Initialize () |
Call this to initialize the class | BaseBehaviors/SingleClickBehavior.h |
Overridden from IClickBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FInputRayHit IsHitByClick
(
const FInputDeviceRay& ClickPos |
Test if target is hit by a click | BaseBehaviors/SingleClickBehavior.h | |
virtual void OnClicked
(
const FInputDeviceRay& ClickPos |
Notify Target that click ocurred | BaseBehaviors/SingleClickBehavior.h |
Overridden from IModifierToggleBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnUpdateModifierState
(
int ModifierID, |
IModifierToggleBehaviorTarget implementation. | BaseBehaviors/SingleClickBehavior.h |
Protected
Overridden from USingleClickInputBehavior
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Initialize
(
IClickBehaviorTarget* Target |
Initialize this behavior with the given Target | BaseBehaviors/SingleClickBehavior.h |