public/0.12.xpublic/0.8.xpublic/0.9.xpublic/0.11.x

    Show / Hide Table of Contents

    Struct FUxtGrabPointerFocus

    Focus implementation for the grab pointers.

    Inherited Members
    FUxtPointerFocus::ClearFocus(UUxtNearPointerComponent *Pointer)
    FUxtPointerFocus::FindClosestPointOnComponent(UActorComponent *Target, const FVector &Point)
    FUxtPointerFocus::FindClosestTarget(const TArray<FOverlapResult> &Overlaps, const FVector &Point)
    FUxtPointerFocus::FindInterfaceComponent(AActor *Owner)
    FUxtPointerFocus::GetClosestTargetNormal()
    FUxtPointerFocus::GetClosestTargetPoint()
    FUxtPointerFocus::GetFocusedPrimitive()
    FUxtPointerFocus::GetFocusedTarget()
    FUxtPointerFocus::GetFocusedTargetChecked()
    FUxtPointerFocus::SelectClosestPointOnTarget(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, UActorComponent *NewTarget)
    FUxtPointerFocus::SelectClosestTarget(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, const TArray<FOverlapResult> &Overlaps)
    FUxtPointerFocus::SetFocus(UUxtNearPointerComponent *Pointer, const FTransform &PointerTransform, const FUxtPointerFocusSearchResult &FocusResult)
    FUxtPointerFocus::UpdateClosestTarget(const FTransform &PointerTransform)
    FUxtPointerFocus::UpdateFocus(UUxtNearPointerComponent *Pointer)
    FUxtPointerFocus::~FUxtPointerFocus()
    Namespace:
    Assembly: .dll
    Syntax
    public: struct FUxtGrabPointerFocus : public xtPointerFocus

    Methods

    | Improve this Doc View Source

    BeginGrab(UUxtNearPointerComponent *Pointer)

    Notify the target object that grab has started.

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

    EndGrab(UUxtNearPointerComponent *Pointer)

    Notify the target object that grab has ended.

    Declaration
    public: void EndGrab(UUxtNearPointerComponent *Pointer)
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    | 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 override
    Parameters
    Type Name Description
    const UActorComponent * Target
    const UPrimitiveComponent * Primitive
    const FVector & Point
    FVector & OutClosestPoint
    FVector & OutNormal
    Returns
    Type Description
    bool
    Overrides
    FUxtPointerFocus::GetClosestPointOnTarget(const UActorComponent *Target, const UPrimitiveComponent *Primitive, const FVector &Point, FVector &OutClosestPoint, FVector &OutNormal)
    | Improve this Doc View Source

    GetInterfaceClass()

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

    Declaration
    protected: virtual UClass * GetInterfaceClass() const override
    Returns
    Type Description
    UClass *
    Overrides
    FUxtPointerFocus::GetInterfaceClass()
    | 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 override
    Parameters
    Type Name Description
    UObject * Target
    Returns
    Type Description
    bool
    Overrides
    FUxtPointerFocus::ImplementsTargetInterface(UObject *Target)
    | Improve this Doc View Source

    IsGrabbing()

    Declaration
    public: bool IsGrabbing() const
    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 override
    Parameters
    Type Name Description
    UPrimitiveComponent * Target
    UUxtNearPointerComponent * Pointer
    Overrides
    FUxtPointerFocus::RaiseEnterFocusEvent(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 override
    Parameters
    Type Name Description
    UPrimitiveComponent * Target
    UUxtNearPointerComponent * Pointer
    Overrides
    FUxtPointerFocus::RaiseExitFocusEvent(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 override
    Parameters
    Type Name Description
    UPrimitiveComponent * Target
    UUxtNearPointerComponent * Pointer
    Overrides
    FUxtPointerFocus::RaiseUpdateFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)
    | Improve this Doc View Source

    UpdateGrab(UUxtNearPointerComponent *Pointer)

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

    Declaration
    public: void UpdateGrab(UUxtNearPointerComponent *Pointer)
    Parameters
    Type Name Description
    UUxtNearPointerComponent * Pointer
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • BeginGrab(UUxtNearPointerComponent *Pointer)
      • EndGrab(UUxtNearPointerComponent *Pointer)
      • GetClosestPointOnTarget(const UActorComponent *Target, const UPrimitiveComponent *Primitive, const FVector &Point, FVector &OutClosestPoint, FVector &OutNormal)
      • GetInterfaceClass()
      • ImplementsTargetInterface(UObject *Target)
      • IsGrabbing()
      • RaiseEnterFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)
      • RaiseExitFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)
      • RaiseUpdateFocusEvent(UPrimitiveComponent *Target, UUxtNearPointerComponent *Pointer)
      • UpdateGrab(UUxtNearPointerComponent *Pointer)
    Back to top Generated by DocFX