public/0.12.xpublic/0.9.xpublic/0.10.xpublic/0.11.x
  • Guides
  • API Documentation
  • API Documentation
  • UUxtPressableButtonComponent

    Show / Hide Table of Contents
    • AUxtHandInteractionActor
    • AUxtInputSimulationActor
    • FUxtBoundingBoxAffordanceInfo
    • FUxtBoundingBoxPresetUtils
    • FUxtGrabPointerData
    • FUxtGrabPointerFocus
    • FUxtInteractionUtils
    • FUXToolsEditorModule
    • FUXToolsModule
    • FUXToolsWMRModule
    • FUxtPointerFocus
    • FUxtPointerFocusSearchResult
    • FUxtPokePointerFocus
    • FUxtPressableButtonComponentVisualizer
    • FUxtRuntimeSettingsButtonSet
    • FUxtWmrHandTracker
    • IUxtFarTarget
    • IUxtGrabTarget
    • IUxtHandTracker
    • IUxtPokeTarget
    • UUxtBoundingBoxManipulatorComponent
    • UUxtFarBeamComponent
    • UUxtFarCursorComponent
    • UUxtFarPointerComponent
    • UUxtFarTarget
    • UUxtFingerCursorComponent
    • UUxtFollowComponent
    • UUxtFunctionLibrary
    • UUxtGrabPointerDataFunctionLibrary
    • UUxtGrabTarget
    • UUxtGrabTargetComponent
    • UUxtHandTrackingFunctionLibrary
    • UUxtInputSimulationHeadMovementComponent
    • UUxtInputSimulationLocalPlayerSubsystem
    • UUxtManipulatorComponentBase
    • UUxtMathUtilsFunctionLibrary
    • UUxtNearPointerComponent
    • UUxtPokeTarget
    • UUxtPressableButtonComponent
    • UUxtRuntimeSettings
    • UxtManipulationMoveLogic
    • UXTools
    • UXToolsEditor
    • UXToolsInputSimulation
    • UXToolsRuntimeSettings
    • UXToolsWMR
    • UxtTwoHandManipulationRotateLogic
    • UxtTwoHandManipulationScaleLogic

    Class UUxtPressableButtonComponent

    Component that turns the actor it is attached to into a pressable rectangular button.

    Inheritance
    System::Object
    USceneComponent
    UUxtPressableButtonComponent
    Inherited Members
    IUxtPokeTarget::GetPokeBehaviour()
    IUxtFarTarget::IsFarFocusable(const UPrimitiveComponent *Primitive)
    IUxtPokeTarget::IsPokeFocusable(const UPrimitiveComponent *Primitive)
    IUxtPokeTarget::OnBeginPoke(UUxtNearPointerComponent *Pointer)
    IUxtPokeTarget::OnEndPoke(UUxtNearPointerComponent *Pointer)
    IUxtFarTarget::OnEnterFarFocus(UUxtFarPointerComponent *Pointer)
    IUxtPokeTarget::OnEnterPokeFocus(UUxtNearPointerComponent *Pointer)
    IUxtFarTarget::OnExitFarFocus(UUxtFarPointerComponent *Pointer)
    IUxtPokeTarget::OnExitPokeFocus(UUxtNearPointerComponent *Pointer)
    IUxtFarTarget::OnFarDragged(UUxtFarPointerComponent *Pointer)
    IUxtFarTarget::OnFarPressed(UUxtFarPointerComponent *Pointer)
    IUxtFarTarget::OnFarReleased(UUxtFarPointerComponent *Pointer)
    IUxtFarTarget::OnUpdatedFarFocus(UUxtFarPointerComponent *Pointer)
    IUxtPokeTarget::OnUpdatePoke(UUxtNearPointerComponent *Pointer)
    IUxtPokeTarget::OnUpdatePokeFocus(UUxtNearPointerComponent *Pointer)
    Namespace:
    Assembly: .dll
    Syntax
    public: class UUxtPressableButtonComponent : public xtPokeTarget, public xtFarTarget

    Constructors

    | Improve this Doc View Source

    UUxtPressableButtonComponent()

    Declaration
    public: UUxtPressableButtonComponent()

    Fields

    | Improve this Doc View Source

    MaxPushDistance

    The maximum distance the button can be pushed in local space

    Declaration
    public: float MaxPushDistance= 10
    Field Value
    Type Description
    float
    | Improve this Doc View Source

    OnBeginFocus

    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

    OnBeginPoke

    Event raised when a pointer starts poking the Pressable Button.

    Declaration
    public: FUxtButtonBeginPokeDelegate OnBeginPoke
    Field Value
    Type Description
    FUxtButtonBeginPokeDelegate
    | Improve this Doc View Source

    OnButtonPressed

    Event raised when the button reaches the pressed distance.

    Declaration
    public: FUxtButtonPressedDelegate OnButtonPressed
    Field Value
    Type Description
    FUxtButtonPressedDelegate
    | Improve this Doc View Source

    OnButtonReleased

    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

    OnEndFocus

    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

    OnEndPoke

    Event raised when a pointer ends poking the Pressable Button.

    Declaration
    public: FUxtButtonEndPokeDelegate OnEndPoke
    Field Value
    Type Description
    FUxtButtonEndPokeDelegate
    | Improve this Doc View Source

    OnUpdateFocus

    Event raised when a focusing pointer updates.

    Declaration
    public: FUxtButtonUpdateFocusDelegate OnUpdateFocus
    Field Value
    Type Description
    FUxtButtonUpdateFocusDelegate
    | Improve this Doc View Source

    OnUpdatePoke

    Event raised while a pointer is poking the Pressable Button.

    Declaration
    public: FUxtButtonUpdatePokeDelegate OnUpdatePoke
    Field Value
    Type Description
    FUxtButtonUpdatePokeDelegate
    | Improve this Doc View Source

    PressedFraction

    Fraction of the maximum travel distance at which the button will raise the pressed event.

    Declaration
    public: float PressedFraction= 0.5f
    Field Value
    Type Description
    float
    | Improve this Doc View Source

    RecoverySpeed

    Button movement speed while recovering

    Declaration
    public: float RecoverySpeed= 50
    Field Value
    Type Description
    float
    | Improve this Doc View Source

    ReleasedFraction

    Fraction of the maximum travel distance at which a pressed button will raise the released event.

    Declaration
    public: float ReleasedFraction= 0.2f
    Field Value
    Type Description
    float

    Methods

    | Improve this Doc View Source

    BeginPlay()

    Declaration
    protected: virtual void BeginPlay() override
    | Improve this Doc View Source

    GetFrontFaceCollisionMargin()

    Get the distance from the visuals front face to the collider front face.

    Declaration
    public: float GetFrontFaceCollisionMargin() const
    Returns
    Type Description
    float
    | Improve this Doc View Source

    GetPokeBehaviour_Implementation()

    Declaration
    protected: virtual EUxtPokeBehaviour GetPokeBehaviour_Implementation() const override
    Returns
    Type Description
    EUxtPokeBehaviour
    | Improve this Doc View Source

    GetScaleAdjustedMaxPushDistance()

    The maximum distance the button can be pushed

    Declaration
    public: float GetScaleAdjustedMaxPushDistance() const
    Returns
    Type Description
    float
    | Improve this Doc View Source

    GetVisuals()

    Get scene component used for the moving visuals

    Declaration
    public: USceneComponent * GetVisuals() const
    Returns
    Type Description
    USceneComponent *
    | Improve this Doc View Source

    IsFarFocusable_Implementation(const UPrimitiveComponent *Primitive)

    Declaration
    protected: virtual bool IsFarFocusable_Implementation(const UPrimitiveComponent *Primitive) override
    Parameters
    Type Name Description
    const UPrimitiveComponent * Primitive
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    IsPokeFocusable_Implementation(const UPrimitiveComponent *Primitive)

    Declaration
    protected: virtual bool IsPokeFocusable_Implementation(const UPrimitiveComponent *Primitive) override
    Parameters
    Type Name Description
    const UPrimitiveComponent * Primitive
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    IsPressed()

    Get the current pressed state of the button

    Declaration
    public: bool IsPressed() const
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    OnBeginPoke_Implementation(UUxtNearPointerComponent *Pointer)

    Declaration
    protected: virtual void OnBeginPoke_Implementation(UUxtNearPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    OnEndPoke_Implementation(UUxtNearPointerComponent *Pointer)

    Declaration
    protected: virtual void OnEndPoke_Implementation(UUxtNearPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    OnEnterFarFocus_Implementation(UUxtFarPointerComponent *Pointer)

    Declaration
    protected: virtual void OnEnterFarFocus_Implementation(UUxtFarPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtFarPointerComponent * Pointer
    | Improve this Doc View Source

    OnEnterPokeFocus_Implementation(UUxtNearPointerComponent *Pointer)

    Declaration
    protected: virtual void OnEnterPokeFocus_Implementation(UUxtNearPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    OnExitFarFocus_Implementation(UUxtFarPointerComponent *Pointer)

    Declaration
    protected: virtual void OnExitFarFocus_Implementation(UUxtFarPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtFarPointerComponent * Pointer
    | Improve this Doc View Source

    OnExitPokeFocus_Implementation(UUxtNearPointerComponent *Pointer)

    Declaration
    protected: virtual void OnExitPokeFocus_Implementation(UUxtNearPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    OnFarPressed_Implementation(UUxtFarPointerComponent *Pointer)

    Declaration
    protected: virtual void OnFarPressed_Implementation(UUxtFarPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtFarPointerComponent * Pointer
    | Improve this Doc View Source

    OnFarReleased_Implementation(UUxtFarPointerComponent *Pointer)

    Declaration
    protected: virtual void OnFarReleased_Implementation(UUxtFarPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtFarPointerComponent * Pointer
    | Improve this Doc View Source

    OnUpdatedFarFocus_Implementation(UUxtFarPointerComponent *Pointer)

    Declaration
    protected: virtual void OnUpdatedFarFocus_Implementation(UUxtFarPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtFarPointerComponent * Pointer
    | Improve this Doc View Source

    OnUpdatePoke_Implementation(UUxtNearPointerComponent *Pointer)

    Declaration
    protected: virtual void OnUpdatePoke_Implementation(UUxtNearPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    OnUpdatePokeFocus_Implementation(UUxtNearPointerComponent *Pointer)

    Declaration
    protected: virtual void OnUpdatePokeFocus_Implementation(UUxtNearPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    SetCollisionProfile(FName Profile)

    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

    SetFrontFaceCollisionMargin(float Distance)

    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

    SetVisuals(USceneComponent *Visuals)

    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

    TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction)

    Declaration
    protected: virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
    Parameters
    Type Name Description
    float DeltaTime
    ELevelTick TickType
    FActorComponentTickFunction * ThisTickFunction
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UUxtPressableButtonComponent()
    • Fields
      • MaxPushDistance
      • OnBeginFocus
      • OnBeginPoke
      • OnButtonPressed
      • OnButtonReleased
      • OnEndFocus
      • OnEndPoke
      • OnUpdateFocus
      • OnUpdatePoke
      • PressedFraction
      • RecoverySpeed
      • ReleasedFraction
    • Methods
      • BeginPlay()
      • GetFrontFaceCollisionMargin()
      • GetPokeBehaviour_Implementation()
      • GetScaleAdjustedMaxPushDistance()
      • GetVisuals()
      • IsFarFocusable_Implementation(const UPrimitiveComponent *Primitive)
      • IsPokeFocusable_Implementation(const UPrimitiveComponent *Primitive)
      • IsPressed()
      • OnBeginPoke_Implementation(UUxtNearPointerComponent *Pointer)
      • OnEndPoke_Implementation(UUxtNearPointerComponent *Pointer)
      • OnEnterFarFocus_Implementation(UUxtFarPointerComponent *Pointer)
      • OnEnterPokeFocus_Implementation(UUxtNearPointerComponent *Pointer)
      • OnExitFarFocus_Implementation(UUxtFarPointerComponent *Pointer)
      • OnExitPokeFocus_Implementation(UUxtNearPointerComponent *Pointer)
      • OnFarPressed_Implementation(UUxtFarPointerComponent *Pointer)
      • OnFarReleased_Implementation(UUxtFarPointerComponent *Pointer)
      • OnUpdatedFarFocus_Implementation(UUxtFarPointerComponent *Pointer)
      • OnUpdatePoke_Implementation(UUxtNearPointerComponent *Pointer)
      • OnUpdatePokeFocus_Implementation(UUxtNearPointerComponent *Pointer)
      • SetCollisionProfile(FName Profile)
      • SetFrontFaceCollisionMargin(float Distance)
      • SetVisuals(USceneComponent *Visuals)
      • TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction)
    Back to top Generated by DocFX