Show / Hide Table of Contents

    Struct FUxtAffordanceConfig

    Affordances are grabbable actors placed on the bounding box which enable interaction.

    Namespace:
    Assembly: .dll
    Syntax
    public: struct FUxtAffordanceConfig

    Fields

    | Improve this Doc View Source

    Placement

    Preset type of the affordance.

    Declaration
    public: EUxtAffordancePlacement Placement= EUxtAffordancePlacement::Center
    Field Value
    Type Description
    EUxtAffordancePlacement
    | Improve this Doc View Source

    Rotation

    The Euler orientation of the affordance.

    Declaration
    public: FVector Rotation= FVector::ZeroVector
    Field Value
    Type Description
    FVector

    Methods

    | Improve this Doc View Source

    GetAction()

    Action that this affordance will perform when grabbed

    Declaration
    public: EUxtAffordanceAction GetAction() const
    Returns
    Type Description
    EUxtAffordanceAction
    | Improve this Doc View Source

    GetAffordanceKind()

    Kind of actor class to use. The matching actor class from the bounding box component will be used.

    Declaration
    public: EUxtAffordanceKind GetAffordanceKind() const
    Returns
    Type Description
    EUxtAffordanceKind
    | Improve this Doc View Source

    GetBoundsLocation()

    Location of the affordance in normalized bounding box space (-1..1).

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

    GetBoundsRotation()

    Rotation of the affordance in bounding box space.

    Declaration
    public: FRotator GetBoundsRotation() const
    Returns
    Type Description
    FRotator
    | Improve this Doc View Source

    GetWorldLocationAndRotation(const FBox &Bounds, const FTransform &RootTransform, FVector &OutLocation, FQuat &OutRotation)

    Location and rotation of the affordance in world space, based on the root transform. Root transform scale is not included in the result.

    Declaration
    public: void GetWorldLocationAndRotation(const FBox &Bounds, const FTransform &RootTransform, FVector &OutLocation, FQuat &OutRotation) const
    Parameters
    Type Name Description
    const FBox & Bounds
    const FTransform & RootTransform
    FVector & OutLocation
    FQuat & OutRotation
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX