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 SourcePlacement
Preset type of the affordance.
Declaration
public: EUxtAffordancePlacement Placement= EUxtAffordancePlacement::Center
Field Value
| Type | Description |
|---|---|
| EUxtAffordancePlacement |
Rotation
The Euler orientation of the affordance.
Declaration
public: FVector Rotation= FVector::ZeroVector
Field Value
| Type | Description |
|---|---|
| FVector |
Methods
| Improve this Doc View SourceGetAction()
Action that this affordance will perform when grabbed
Declaration
public: EUxtAffordanceAction GetAction() const
Returns
| Type | Description |
|---|---|
| EUxtAffordanceAction |
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 |
GetBoundsLocation()
Location of the affordance in normalized bounding box space (-1..1).
Declaration
public: FVector GetBoundsLocation() const
Returns
| Type | Description |
|---|---|
| FVector |
GetBoundsRotation()
Rotation of the affordance in bounding box space.
Declaration
public: FRotator GetBoundsRotation() const
Returns
| Type | Description |
|---|---|
| FRotator |
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 |