public/0.12.xpublic/0.8.xpublic/0.9.xpublic/0.11.x
  • Features
  • API Documentation
  • API Documentation
  • UUxtGrabTargetComponent

    Show / Hide Table of Contents
    • AUxtBasePressableButtonActor
    • AUxtHandInteractionActor
    • AUxtInputSimulationActor
    • AUxtPinchSliderActor
    • AUxtPressableButtonActor
    • AUxtPressableCheckButtonActor
    • AUxtPressableRadioButtonActor
    • AUxtPressableSwitchButtonActor
    • AUxtPressableToggleButtonActor
    • AUxtTextRenderActor
    • FScrollingCollectionProperties
    • FUxtAffordanceConfig
    • FUxtAffordanceInstance
    • FUxtButtonAudioBrush
    • FUxtButtonBrush
    • FUxtButtonVisualsBrush
    • FUxtFontCharacter
    • FUxtGrabPointerData
    • FUxtGrabPointerFocus
    • FUxtHandProximityMeshData
    • FUxtIconBrush
    • FUxtIconBrushCustomization
    • FUxtInputAnimationUtils
    • FUxtInputSimulationHandState
    • FUxtInteractionUtils
    • FUXToolsEditorModule
    • FUXToolsModule
    • FUXToolsShadersModule
    • FUXToolsWMRModule
    • FUxtPointerFocus
    • FUxtPointerFocusSearchResult
    • FUxtPokePointerFocus
    • FUxtPressableButtonComponentVisualizer
    • FUxtRuntimeSettingsButtonSet
    • FUxtTextBrush
    • FUxtTooltipSpawnerComponentVisualizer
    • FUxtWmrHandTracker
    • IUxtCollectionObject
    • IUxtFarHandler
    • IUxtFarTarget
    • IUxtGrabHandler
    • IUxtGrabTarget
    • IUxtHandTracker
    • IUxtPokeHandler
    • IUxtPokeTarget
    • UUxtBaseObjectCollection
    • UUxtBoundsControlComponent
    • UUxtBoundsControlConfig
    • UUxtCollectionObject
    • UUxtFaceUserConstraint
    • UUxtFarBeamComponent
    • UUxtFarCursorComponent
    • UUxtFarHandler
    • UUxtFarPointerComponent
    • UUxtFarTarget
    • UUxtFingerCursorComponent
    • UUxtFixedDistanceConstraint
    • UUxtFixedRotationToUserConstraint
    • UUxtFixedRotationToWorldConstraint
    • UUxtFollowComponent
    • UUxtFunctionLibrary
    • UUxtGrabHandler
    • UUxtGrabPointerDataFunctionLibrary
    • UUxtGrabTarget
    • UUxtGrabTargetComponent
    • UUxtHandConstraintComponent
    • UUxtHandTrackingFunctionLibrary
    • UUxtIconBrushEditorUtilityWidget
    • UUxtInputSimulationHeadMovementComponent
    • UUxtInputSimulationLocalPlayerSubsystem
    • UUxtInputSimulationState
    • UUxtInputSubsystem
    • UUxtInternalFunctionLibrary
    • UUxtMaintainApparentSizeConstraint
    • UUxtManipulatorComponentBase
    • UUxtMathUtilsFunctionLibrary
    • UUxtMoveAxisConstraint
    • UUxtNearPointerComponent
    • UUxtPalmUpConstraintComponent
    • UUxtPinchSliderComponent
    • UUxtPointerComponent
    • UUxtPokeHandler
    • UUxtPokeTarget
    • UUxtPressableButtonComponent
    • UUxtRotationAxisConstraint
    • UUxtRuntimeSettings
    • UUxtTapToPlaceComponent
    • UUxtTextRenderComponent
    • UUxtToggleGroupComponent
    • UUxtTouchableVolumeComponent
    • UUxtTouchBasedHandTrackerComponent
    • UUxtTouchBasedHandTrackerSubsystem
    • UUxtTransformConstraint
    • UUxtUIElementComponent
    • UUxtWidgetComponent
    • UxtConstraintManager
    • UxtManipulationMoveLogic
    • UXTools
    • UXToolsEditor
    • UXToolsInputSimulation
    • UXToolsRuntimeSettings
    • UXToolsShaders
    • UXToolsWMR
    • UxtTwoHandManipulationRotateLogic
    • UxtTwoHandManipulationScaleLogic

    Class UUxtGrabTargetComponent

    Interactable component that listens to grab events from near pointers.

    A pointer that starts grabing while near the actor is considered a grabbing pointer. The grab is released when the pointer stops grabing, regardless of whether it is still near or not.

    The GrabComponent does not react to grabbing pointers by itself, but serves as a base class for manipulation.

    Inheritance
    System::Object
    USceneComponent
    UUxtGrabTargetComponent
    Inherited Members
    IUxtFarHandler::CanHandleFar(UPrimitiveComponent *Primitive)
    IUxtGrabHandler::CanHandleGrab(UPrimitiveComponent *Primitive)
    IUxtFarTarget::IsFarFocusable(const UPrimitiveComponent *Primitive)
    IUxtGrabTarget::IsGrabFocusable(const UPrimitiveComponent *Primitive)
    IUxtGrabHandler::OnBeginGrab(UUxtNearPointerComponent *Pointer)
    IUxtGrabHandler::OnEndGrab(UUxtNearPointerComponent *Pointer)
    IUxtFarHandler::OnEnterFarFocus(UUxtFarPointerComponent *Pointer)
    IUxtGrabHandler::OnEnterGrabFocus(UUxtNearPointerComponent *Pointer)
    IUxtFarHandler::OnExitFarFocus(UUxtFarPointerComponent *Pointer)
    IUxtGrabHandler::OnExitGrabFocus(UUxtNearPointerComponent *Pointer)
    IUxtFarHandler::OnFarDragged(UUxtFarPointerComponent *Pointer)
    IUxtFarHandler::OnFarPressed(UUxtFarPointerComponent *Pointer)
    IUxtFarHandler::OnFarReleased(UUxtFarPointerComponent *Pointer)
    IUxtFarHandler::OnUpdatedFarFocus(UUxtFarPointerComponent *Pointer)
    IUxtGrabHandler::OnUpdateGrab(UUxtNearPointerComponent *Pointer)
    IUxtGrabHandler::OnUpdateGrabFocus(UUxtNearPointerComponent *Pointer)
    Namespace:
    Assembly: .dll
    Syntax
    public: class UUxtGrabTargetComponent : public xtGrabTarget, public xtGrabHandler, public xtFarTarget, public xtFarHandler

    Constructors

    | Improve this Doc View Source

    UUxtGrabTargetComponent()

    Declaration
    public: UUxtGrabTargetComponent()

    Fields

    | Improve this Doc View Source

    InteractionMode

    Property that indicates if the object is grabbable with far or near interaction or both.

    Declaration
    public: int32 InteractionMode
    Field Value
    Type Description
    int32
    | Improve this Doc View Source

    OnBeginGrab

    Event raised when grab starts.

    Declaration
    public: FUxtBeginGrabDelegate OnBeginGrab
    Field Value
    Type Description
    FUxtBeginGrabDelegate
    | Improve this Doc View Source

    OnEndGrab

    Event raised when grab ends.

    Declaration
    public: FUxtEndGrabDelegate OnEndGrab
    Field Value
    Type Description
    FUxtEndGrabDelegate
    | Improve this Doc View Source

    OnEnterFarFocus

    Event raised when entering grab focus.

    Declaration
    public: FUxtEnterFarFocusDelegate OnEnterFarFocus
    Field Value
    Type Description
    FUxtEnterFarFocusDelegate
    | Improve this Doc View Source

    OnEnterGrabFocus

    Event raised when entering grab focus.

    Declaration
    public: FUxtEnterGrabFocusDelegate OnEnterGrabFocus
    Field Value
    Type Description
    FUxtEnterGrabFocusDelegate
    | Improve this Doc View Source

    OnExitFarFocus

    Event raised when exiting grab.

    Declaration
    public: FUxtExitFarFocusDelegate OnExitFarFocus
    Field Value
    Type Description
    FUxtExitFarFocusDelegate
    | Improve this Doc View Source

    OnExitGrabFocus

    Event raised when exiting grab.

    Declaration
    public: FUxtExitGrabFocusDelegate OnExitGrabFocus
    Field Value
    Type Description
    FUxtExitGrabFocusDelegate
    | Improve this Doc View Source

    OnUpdateFarFocus

    Event raised when grab focus updates.

    Declaration
    public: FUxtUpdateFarFocusDelegate OnUpdateFarFocus
    Field Value
    Type Description
    FUxtUpdateFarFocusDelegate
    | Improve this Doc View Source

    OnUpdateGrab

    Event raised when grab updates.

    Declaration
    public: FUxtUpdateGrabDelegate OnUpdateGrab
    Field Value
    Type Description
    FUxtUpdateGrabDelegate
    | Improve this Doc View Source

    OnUpdateGrabFocus

    Event raised when grab focus updates.

    Declaration
    public: FUxtUpdateGrabFocusDelegate OnUpdateGrabFocus
    Field Value
    Type Description
    FUxtUpdateGrabFocusDelegate

    Methods

    | Improve this Doc View Source

    BeginPlay()

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

    CanHandleFar_Implementation(UPrimitiveComponent *Primitive)

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

    CanHandleGrab_Implementation(UPrimitiveComponent *Primitive)

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

    FindGrabPointer(UUxtNearPointerComponent *NearPointer, UUxtFarPointerComponent *FarPointer, bool &Success, FUxtGrabPointerData &PointerData, int &Index)

    Returns true if the pointer is currently grabbing the actor. PointerData will contain the associated grab data for the pointer. Index is the order in which pointers started grabbing.

    Declaration
    public: void FindGrabPointer(UUxtNearPointerComponent *NearPointer, UUxtFarPointerComponent *FarPointer, bool &Success, FUxtGrabPointerData &PointerData, int &Index) const
    Parameters
    Type Name Description
    UUxtNearPointerComponent * NearPointer
    UUxtFarPointerComponent * FarPointer
    bool & Success
    FUxtGrabPointerData & PointerData
    int & Index
    | Improve this Doc View Source

    ForceEndGrab()

    Release all currently grabbing pointers. Returns true if any pointers were grabbing and have been released, false if no pointers were grabbing.

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

    GetGrabPointCentroid(const FTransform &Transform)

    Compute the centroid of the grab points in world space.

    Declaration
    public: FTransform GetGrabPointCentroid(const FTransform &Transform) const
    Parameters
    Type Name Description
    const FTransform & Transform
    Returns
    Type Description
    FTransform
    | Improve this Doc View Source

    GetGrabPointers()

    Returns a list of all currently grabbing pointers.

    Declaration
    public: const TArray<FUxtGrabPointerData> & GetGrabPointers() const
    Returns
    Type Description
    const TArray<FUxtGrabPointerData> &
    | Improve this Doc View Source

    GetPointerCentroid()

    Compute the average transform of currently grabbing pointers

    Declaration
    protected: FTransform GetPointerCentroid() const
    Returns
    Type Description
    FTransform
    | Improve this Doc View Source

    GetPrimaryGrabPointer(bool &Valid, FUxtGrabPointerData &PointerData)

    Returns the first active grab pointer. If no pointer is grabbing the Valid output will be false.

    Declaration
    public: void GetPrimaryGrabPointer(bool &Valid, FUxtGrabPointerData &PointerData) const
    Parameters
    Type Name Description
    bool & Valid
    FUxtGrabPointerData & PointerData
    | Improve this Doc View Source

    GetSecondaryGrabPointer(bool &Valid, FUxtGrabPointerData &PointerData)

    Returns the second active grab pointer. If less than two pointers are grabbing the Valid output will be false.

    Declaration
    public: void GetSecondaryGrabPointer(bool &Valid, FUxtGrabPointerData &PointerData) const
    Parameters
    Type Name Description
    bool & Valid
    FUxtGrabPointerData & PointerData
    | Improve this Doc View Source

    GetTargetCentroid()

    Compute the centroid of the pointer targets in world space.

    Declaration
    public: FVector GetTargetCentroid() const
    Returns
    Type Description
    FVector
    | Improve this Doc View Source

    GetTickOnlyWhileGrabbed()

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

    IsFarFocusable_Implementation(const UPrimitiveComponent *Primitive)

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

    IsGrabFocusable_Implementation(const UPrimitiveComponent *Primitive)

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

    OnBeginGrab_Implementation(UUxtNearPointerComponent *Pointer)

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

    OnEndGrab_Implementation(UUxtNearPointerComponent *Pointer)

    Declaration
    protected: virtual void OnEndGrab_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

    OnEnterGrabFocus_Implementation(UUxtNearPointerComponent *Pointer)

    Declaration
    protected: virtual void OnEnterGrabFocus_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

    OnExitGrabFocus_Implementation(UUxtNearPointerComponent *Pointer)

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

    OnFarDragged_Implementation(UUxtFarPointerComponent *Pointer)

    Declaration
    protected: virtual void OnFarDragged_Implementation(UUxtFarPointerComponent *Pointer) override
    Parameters
    Type Name Description
    UUxtFarPointerComponent * 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

    OnUpdateGrab_Implementation(UUxtNearPointerComponent *Pointer)

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

    OnUpdateGrabFocus_Implementation(UUxtNearPointerComponent *Pointer)

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

    SetTickOnlyWhileGrabbed(bool bEnable)

    Declaration
    public: void SetTickOnlyWhileGrabbed(bool bEnable)
    Parameters
    Type Name Description
    bool bEnable
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UUxtGrabTargetComponent()
    • Fields
      • InteractionMode
      • OnBeginGrab
      • OnEndGrab
      • OnEnterFarFocus
      • OnEnterGrabFocus
      • OnExitFarFocus
      • OnExitGrabFocus
      • OnUpdateFarFocus
      • OnUpdateGrab
      • OnUpdateGrabFocus
    • Methods
      • BeginPlay()
      • CanHandleFar_Implementation(UPrimitiveComponent *Primitive)
      • CanHandleGrab_Implementation(UPrimitiveComponent *Primitive)
      • FindGrabPointer(UUxtNearPointerComponent *NearPointer, UUxtFarPointerComponent *FarPointer, bool &Success, FUxtGrabPointerData &PointerData, int &Index)
      • ForceEndGrab()
      • GetGrabPointCentroid(const FTransform &Transform)
      • GetGrabPointers()
      • GetPointerCentroid()
      • GetPrimaryGrabPointer(bool &Valid, FUxtGrabPointerData &PointerData)
      • GetSecondaryGrabPointer(bool &Valid, FUxtGrabPointerData &PointerData)
      • GetTargetCentroid()
      • GetTickOnlyWhileGrabbed()
      • IsFarFocusable_Implementation(const UPrimitiveComponent *Primitive)
      • IsGrabFocusable_Implementation(const UPrimitiveComponent *Primitive)
      • OnBeginGrab_Implementation(UUxtNearPointerComponent *Pointer)
      • OnEndGrab_Implementation(UUxtNearPointerComponent *Pointer)
      • OnEnterFarFocus_Implementation(UUxtFarPointerComponent *Pointer)
      • OnEnterGrabFocus_Implementation(UUxtNearPointerComponent *Pointer)
      • OnExitFarFocus_Implementation(UUxtFarPointerComponent *Pointer)
      • OnExitGrabFocus_Implementation(UUxtNearPointerComponent *Pointer)
      • OnFarDragged_Implementation(UUxtFarPointerComponent *Pointer)
      • OnFarPressed_Implementation(UUxtFarPointerComponent *Pointer)
      • OnFarReleased_Implementation(UUxtFarPointerComponent *Pointer)
      • OnUpdatedFarFocus_Implementation(UUxtFarPointerComponent *Pointer)
      • OnUpdateGrab_Implementation(UUxtNearPointerComponent *Pointer)
      • OnUpdateGrabFocus_Implementation(UUxtNearPointerComponent *Pointer)
      • SetTickOnlyWhileGrabbed(bool bEnable)
    Back to top Generated by DocFX