Touch Interface Designer 2025.2
Create touch interface with a visual editor and manage all mobile inputs like gestures
Loading...
Searching...
No Matches
UKnobLogic Class Reference

#include <KnobLogic.h>

Inheritance diagram for UKnobLogic:
Collaboration diagram for UKnobLogic:

Public Member Functions

 UKnobLogic ()
virtual void Initialize_Implementation () override
virtual void OnPress_Implementation (const FGeometry &ComponentGeometry, const FPointerEvent &PointerEvent) override
virtual void OnMove_Implementation (const FGeometry &ComponentGeometry, const FPointerEvent &PointerEvent) override
virtual void OnRelease_Implementation (const FGeometry &ComponentGeometry, const FPointerEvent &PointerEvent) override
virtual void SetInputAction_Implementation (UInputAction *NewInputAction) override
BlueprintPure float GetCurrentKnobRotation () const
BlueprintPure float GetKnobInput (const bool bMapTo360) const

Public Attributes

 Category ="Knob"
 BlueprintCallable
 EditAnywhere
BlueprintReadOnly TObjectPtr< UInputAction > InputAction
 BlueprintReadOnly
 meta
BlueprintReadOnly EKnobMode Mode
BlueprintReadOnly uint8 bSnapOnPress:1
BlueprintReadOnly uint8 bSendInputOnPress:1

Protected Attributes

TWeakObjectPtr< UComponentDecoratorKnobLayerRef

Constructor & Destructor Documentation

◆ UKnobLogic()

UKnobLogic::UKnobLogic ( )

Member Function Documentation

◆ GetCurrentKnobRotation()

BlueprintPure float UKnobLogic::GetCurrentKnobRotation ( ) const
inline

◆ GetKnobInput()

float UKnobLogic::GetKnobInput ( const bool bMapTo360) const

◆ Initialize_Implementation()

void UKnobLogic::Initialize_Implementation ( )
overridevirtual

◆ OnMove_Implementation()

void UKnobLogic::OnMove_Implementation ( const FGeometry & ComponentGeometry,
const FPointerEvent & PointerEvent )
overridevirtual

◆ OnPress_Implementation()

void UKnobLogic::OnPress_Implementation ( const FGeometry & ComponentGeometry,
const FPointerEvent & PointerEvent )
overridevirtual

◆ OnRelease_Implementation()

void UKnobLogic::OnRelease_Implementation ( const FGeometry & ComponentGeometry,
const FPointerEvent & PointerEvent )
overridevirtual

◆ SetInputAction_Implementation()

void UKnobLogic::SetInputAction_Implementation ( UInputAction * NewInputAction)
overridevirtual

Member Data Documentation

◆ BlueprintCallable

UKnobLogic::BlueprintCallable

◆ BlueprintReadOnly

UKnobLogic::BlueprintReadOnly

◆ bSendInputOnPress

BlueprintReadOnly uint8 UKnobLogic::bSendInputOnPress

◆ bSnapOnPress

BlueprintReadOnly uint8 UKnobLogic::bSnapOnPress

◆ Category

UKnobLogic::Category ="Knob"

Name of the decorative layer used by the button. This layer is rotated and is used to indicate the current rotation value.

If enabled, calculate input value on press Warning! If you are using delta instead of absolute value, the delta can be huge!

Set minimum delta (offset from previous rotation) to trigger input Keep it to 0.0f to disable this feature

Define the location of each switch Be careful with gap between each switch The value must be between 0 and 360 degree.

Automatically add a texture or material to the decorator, which will be used to represent the orientation of the knob Experimental, use with caution, can cause crash (editor and runtime)

◆ EditAnywhere

UKnobLogic::EditAnywhere

◆ InputAction

BlueprintReadOnly TObjectPtr<UInputAction> UKnobLogic::InputAction

◆ KnobLayerRef

TWeakObjectPtr<UComponentDecorator> UKnobLogic::KnobLayerRef
protected

Automatically add a texture or material to the decorator, which will be used to represent the orientation of the knob Experimental, use with caution, can cause crash (editor and runtime)

◆ meta

UKnobLogic::meta
Initial value:
=(GetOptions="GetAllDecoratorNames"))
FName KnobLayer

◆ Mode

BlueprintReadOnly EKnobMode UKnobLogic::Mode

The documentation for this class was generated from the following files:
  • D:/MEGA/TouchProject/TouchProjectNext/Plugins/TouchInterfaceDesigner/Source/TouchInterface/Public/Logics/KnobLogic.h
  • D:/MEGA/TouchProject/TouchProjectNext/Plugins/TouchInterfaceDesigner/Source/TouchInterface/Private/Logics/KnobLogic.cpp