ULocalSingleClickInputBehavior

An implementation of [USingleClickInputBehavior](API\Runtime\InteractiveToolsFramework\BaseBehaviors\USingleClickInputBehavior) that also implements [IClickBehaviorTarget](API\Runtime\InteractiveToolsFramework\BaseBehaviors\IClickBehaviorTarget) directly, via a set of local lambda functions.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseBehaviors/SingleClickBehavior.h

Include

#include "BaseBehaviors/SingleClickBehavior.h"

Syntax

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

Name Description

Public variable

TUniqueFunction...

 

IsHitByClickFunc

Lambda implementation of IsHitByClick

Public variable

TUniqueFunction...

 

OnClickedFunc

Lambda implementation of OnClicked

Functions

Name Description

Public function Virtual

void

 

Initialize()

Call this to initialize the class

Overridden from IClickBehaviorTarget

Name Description

Public function Virtual

FInputRayHit

 

IsHitByClick

(
    const FInputDeviceRay& ClickPos
)

Test if target is hit by a click

Public function Virtual

void

 

OnClicked

(
    const FInputDeviceRay& ClickPos
)

Notify Target that click ocurred