Class UUxtPressableButtonComponent
Component that turns the actor it is attached to into a pressable rectangular button.
Inheritance
System::Object
USceneComponent
UUxtPressableButtonComponent
Namespace:
Assembly: .dll
public: class UUxtPressableButtonComponent : public xtPokeTarget, public xtFarTarget
Constructors
|
Improve this Doc
View Source
Declaration
public: UUxtPressableButtonComponent()
Fields
|
Improve this Doc
View Source
The maximum distance the button can be pushed in local space
Declaration
public: float MaxPushDistance= 10
Field Value
|
Improve this Doc
View Source
Event raised when a pointer starts focusing the button. WasFocused indicates if the button was already focused by another pointer.
Declaration
public: FUxtButtonBeginFocusDelegate OnBeginFocus
Field Value
Type |
Description |
FUxtButtonBeginFocusDelegate |
|
|
Improve this Doc
View Source
Event raised when a pointer starts poking the Pressable Button.
Declaration
public: FUxtButtonBeginPokeDelegate OnBeginPoke
Field Value
Type |
Description |
FUxtButtonBeginPokeDelegate |
|
|
Improve this Doc
View Source
Event raised when the button reaches the pressed distance.
Declaration
public: FUxtButtonPressedDelegate OnButtonPressed
Field Value
Type |
Description |
FUxtButtonPressedDelegate |
|
|
Improve this Doc
View Source
Event raised when the a pressed button reaches the released distance.
Declaration
public: FUxtButtonReleasedDelegate OnButtonReleased
Field Value
Type |
Description |
FUxtButtonReleasedDelegate |
|
|
Improve this Doc
View Source
Event raised when a pointer ends focusing the Pressable Button. IsFocused indicates if the Pressable Button is still focused by another pointer.
Declaration
public: FUxtButtonEndFocusDelegate OnEndFocus
Field Value
Type |
Description |
FUxtButtonEndFocusDelegate |
|
|
Improve this Doc
View Source
Event raised when a pointer ends poking the Pressable Button.
Declaration
public: FUxtButtonEndPokeDelegate OnEndPoke
Field Value
Type |
Description |
FUxtButtonEndPokeDelegate |
|
|
Improve this Doc
View Source
Event raised when a focusing pointer updates.
Declaration
public: FUxtButtonUpdateFocusDelegate OnUpdateFocus
Field Value
Type |
Description |
FUxtButtonUpdateFocusDelegate |
|
|
Improve this Doc
View Source
Event raised while a pointer is poking the Pressable Button.
Declaration
public: FUxtButtonUpdatePokeDelegate OnUpdatePoke
Field Value
Type |
Description |
FUxtButtonUpdatePokeDelegate |
|
|
Improve this Doc
View Source
Fraction of the maximum travel distance at which the button will raise the pressed event.
Declaration
public: float PressedFraction= 0.5f
Field Value
|
Improve this Doc
View Source
Button movement speed while recovering
Declaration
public: float RecoverySpeed= 50
Field Value
|
Improve this Doc
View Source
Fraction of the maximum travel distance at which a pressed button will raise the released event.
Declaration
public: float ReleasedFraction= 0.2f
Field Value
Methods
|
Improve this Doc
View Source
Declaration
protected: virtual void BeginPlay() override
|
Improve this Doc
View Source
Get the distance from the visuals front face to the collider front face.
Declaration
public: float GetFrontFaceCollisionMargin() const
Returns
|
Improve this Doc
View Source
Declaration
protected: virtual EUxtPokeBehaviour GetPokeBehaviour_Implementation() const override
Returns
Type |
Description |
EUxtPokeBehaviour |
|
|
Improve this Doc
View Source
The maximum distance the button can be pushed
Declaration
public: float GetScaleAdjustedMaxPushDistance() const
Returns
|
Improve this Doc
View Source
Get scene component used for the moving visuals
Declaration
public: USceneComponent * GetVisuals() const
Returns
Type |
Description |
USceneComponent * |
|
|
Improve this Doc
View Source
Declaration
protected: virtual bool IsFarFocusable_Implementation(const UPrimitiveComponent *Primitive) override
Parameters
Type |
Name |
Description |
const UPrimitiveComponent * |
Primitive |
|
Returns
|
Improve this Doc
View Source
Declaration
protected: virtual bool IsPokeFocusable_Implementation(const UPrimitiveComponent *Primitive) override
Parameters
Type |
Name |
Description |
const UPrimitiveComponent * |
Primitive |
|
Returns
|
Improve this Doc
View Source
Get the current pressed state of the button
Declaration
public: bool IsPressed() const
Returns
|
Improve this Doc
View Source
Declaration
protected: virtual void OnBeginPoke_Implementation(UUxtNearPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnEndPoke_Implementation(UUxtNearPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnEnterFarFocus_Implementation(UUxtFarPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnEnterPokeFocus_Implementation(UUxtNearPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnExitFarFocus_Implementation(UUxtFarPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnExitPokeFocus_Implementation(UUxtNearPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnFarPressed_Implementation(UUxtFarPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnFarReleased_Implementation(UUxtFarPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnUpdatedFarFocus_Implementation(UUxtFarPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnUpdatePoke_Implementation(UUxtNearPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Declaration
protected: virtual void OnUpdatePokeFocus_Implementation(UUxtNearPointerComponent *Pointer) override
Parameters
|
Improve this Doc
View Source
Set collision profile used by the button collider
Declaration
public: void SetCollisionProfile(FName Profile)
Parameters
Type |
Name |
Description |
FName |
Profile |
|
|
Improve this Doc
View Source
Set the distance from the visuals front face to the collider front face.
Declaration
public: void SetFrontFaceCollisionMargin(float Distance)
Parameters
Type |
Name |
Description |
float |
Distance |
|
|
Improve this Doc
View Source
Set scene component to be used for the moving visuals
Declaration
public: void SetVisuals(USceneComponent *Visuals)
Parameters
Type |
Name |
Description |
USceneComponent * |
Visuals |
|
|
Improve this Doc
View Source
Declaration
protected: virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
Parameters
Type |
Name |
Description |
float |
DeltaTime |
|
ELevelTick |
TickType |
|
FActorComponentTickFunction * |
ThisTickFunction |
|