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

    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

    Struct FUxtPointerFocus

    Utility class that is used by components to manage different pointers and their focus targets.

    Namespace:
    Assembly: .dll
    Syntax
    public: struct FUxtPointerFocus

    Constructors

    | Improve this Doc View Source

    ~FUxtPointerFocus()

    Declaration
    public: virtual ~FUxtPointerFocus()

    Methods

    | Improve this Doc View Source

    ClearFocus(UUxtNearPointerComponent *Pointer)

    Clear the focused target.

    Declaration
    public: void ClearFocus(UUxtNearPointerComponent *Pointer)
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    FindClosestPointOnComponent(UActorComponent *Target, const FVector &Point)

    Find the closest primitive and point on the owner of the given component.

    Declaration
    protected: FUxtPointerFocusSearchResult FindClosestPointOnComponent(UActorComponent *Target, const FVector &Point) const
    Parameters
    Type Name Description
    UActorComponent * Target
    const FVector & Point
    Returns
    Type Description
    FUxtPointerFocusSearchResult
    | Improve this Doc View Source

    FindClosestTarget(const TArray<FOverlapResult> &Overlaps, const FVector &Point)

    Find the closest target object, primitive, and point among the overlaps.

    Declaration
    protected: FUxtPointerFocusSearchResult FindClosestTarget(const TArray<FOverlapResult> &Overlaps, const FVector &Point) const
    Parameters
    Type Name Description
    const TArray<FOverlapResult> & Overlaps
    const FVector & Point
    Returns
    Type Description
    FUxtPointerFocusSearchResult
    | Improve this Doc View Source

    FindInterfaceComponent(AActor *Owner)

    Find a component of the actor that implements the required interface.

    Find a component of the actor that implements the given interface type.

    Declaration
    public: UActorComponent * FindInterfaceComponent(AActor *Owner) const
    Parameters
    Type Name Description
    AActor * Owner
    Returns
    Type Description
    UActorComponent *
    | Improve this Doc View Source

    GetClosestPointOnTarget(const UActorComponent *Target, const UPrimitiveComponent *Primitive, const FVector &Point, FVector &OutClosestPoint, FVector &OutNormal)

    Find the closest point on the given primitive using the distance function of the target interface.

    Declaration
    protected: virtual bool GetClosestPointOnTarget(const UActorComponent *Target, const UPrimitiveComponent *Primitive, const FVector &Point, FVector &OutClosestPoint, FVector &OutNormal) const =0
    Parameters
    Type Name Description
    const UActorComponent * Target
    const UPrimitiveComponent * Primitive
    const FVector & Point
    FVector & OutClosestPoint
    FVector & OutNormal
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    GetClosestTargetNormal()

    Get the poke normal from the closest point on the surface

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

    GetClosestTargetPoint()

    Get the closest point on the surface of the focused target

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

    GetFocusedPrimitive()

    Get the currently focused primitive component

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

    GetFocusedTarget()

    Get the currently focused target object.

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

    GetFocusedTargetChecked()

    Get the currently focused target object. Returns null if the target does not implement the expected interface.

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

    GetInterfaceClass()

    Get the interface class that targets for the pointer must implement.

    Declaration
    protected: virtual UClass * GetInterfaceClass() const =0
    Returns
    Type Description
    UClass *
    | Improve this Doc View Source

    ImplementsTargetInterface(UObject *Target)

    Returns true if the given object implements the required target interface.

    Declaration
    protected: virtual bool ImplementsTargetInterface(UObject *Target) const =0
    Parameters
    Type Name Description
    UObject * Target
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    RaiseEnterFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)

    Notify the target object that it has entered focus.

    Declaration
    protected: virtual void RaiseEnterFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer) const =0
    Parameters
    Type Name Description
    UPrimitiveComponent * Target
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    RaiseExitFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)

    Notify the target object that it has exited focus.

    Declaration
    protected: virtual void RaiseExitFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer) const =0
    Parameters
    Type Name Description
    UPrimitiveComponent * Target
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    RaiseUpdateFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)

    Notify the focused target object that the pointer has been updated.

    Declaration
    protected: virtual void RaiseUpdateFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer) const =0
    Parameters
    Type Name Description
    UPrimitiveComponent * Target
    UUxtNearPointerComponent * Pointer
    | Improve this Doc View Source

    SelectClosestPointOnTarget(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, UActorComponent *NewTarget)

    Select the closest primitive from the owner of the given target component. The target component will be the new focus, unless no usable primitive can be found.

    Declaration
    public: void SelectClosestPointOnTarget(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, UActorComponent *NewTarget)
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    const FTransform & PointerTransform
    UActorComponent * NewTarget
    | Improve this Doc View Source

    SelectClosestTarget(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, const TArray<FOverlapResult> &Overlaps)

    Select and set the focused target among the list of overlaps.

    Declaration
    public: void SelectClosestTarget(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, const TArray<FOverlapResult> &Overlaps)
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    const FTransform & PointerTransform
    const TArray<FOverlapResult> & Overlaps
    | Improve this Doc View Source

    SetFocus(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, const FUxtPointerFocusSearchResult &FocusResult)

    Set the focus to the given target object, primitive, and point on the target.

    Declaration
    protected: void SetFocus(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, const FUxtPointerFocusSearchResult &FocusResult)
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    const FTransform & PointerTransform
    const FUxtPointerFocusSearchResult & FocusResult
    | Improve this Doc View Source

    UpdateClosestTarget(const FTransform &PointerTransform)

    Update the ClosestTargetPoint while focus is locked

    Declaration
    public: void UpdateClosestTarget(const FTransform &PointerTransform)
    Parameters
    Type Name Description
    const FTransform & PointerTransform
    | Improve this Doc View Source

    UpdateFocus(UUxtNearPointerComponent *Pointer)

    Notify the focused target of a pointer update.

    Declaration
    public: void UpdateFocus(UUxtNearPointerComponent *Pointer) const
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ~FUxtPointerFocus()
    • Methods
      • ClearFocus(UUxtNearPointerComponent *Pointer)
      • FindClosestPointOnComponent(UActorComponent *Target, const FVector &Point)
      • FindClosestTarget(const TArray<FOverlapResult> &Overlaps, const FVector &Point)
      • FindInterfaceComponent(AActor *Owner)
      • GetClosestPointOnTarget(const UActorComponent *Target, const UPrimitiveComponent *Primitive, const FVector &Point, FVector &OutClosestPoint, FVector &OutNormal)
      • GetClosestTargetNormal()
      • GetClosestTargetPoint()
      • GetFocusedPrimitive()
      • GetFocusedTarget()
      • GetFocusedTargetChecked()
      • GetInterfaceClass()
      • ImplementsTargetInterface(UObject *Target)
      • RaiseEnterFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)
      • RaiseExitFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)
      • RaiseUpdateFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)
      • SelectClosestPointOnTarget(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, UActorComponent *NewTarget)
      • SelectClosestTarget(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, const TArray<FOverlapResult> &Overlaps)
      • SetFocus(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, const FUxtPointerFocusSearchResult &FocusResult)
      • UpdateClosestTarget(const FTransform &PointerTransform)
      • UpdateFocus(UUxtNearPointerComponent *Pointer)
    Back to top Generated by DocFX