Struct FUxtBoundingBoxAffordanceInfo
Affordances are grabbable actors placed on the bounding box which enable interaction.
Namespace:
Assembly: .dll
Syntax
public: struct FUxtBoundingBoxAffordanceInfo
Fields
| Improve this Doc View SourceAction
Action to perform when the affordance is grabbed.
Declaration
public: EUxtBoundingBoxAffordanceAction Action= EUxtBoundingBoxAffordanceAction::Resize
Field Value
| Type | Description |
|---|---|
| EUxtBoundingBoxAffordanceAction |
ActorClass
Actor that will be spawned to represent the affordance.
Declaration
public: TSubclassOf<class AActor> ActorClass
Field Value
| Type | Description |
|---|---|
| TSubclassOf<class AActor> |
BoundsLocation
Location of the affordance in normalized bounding box space (-1..1).
Declaration
public: FVector BoundsLocation
Field Value
| Type | Description |
|---|---|
| FVector |
BoundsRotation
Rotation of the affordance in bounding box space.
Declaration
public: FRotator BoundsRotation
Field Value
| Type | Description |
|---|---|
| FRotator |
ConstraintMatrix
Constraint matrix defining possible movement directions or rotation axes. Drag vectors during interaction are multiplied with this matrix.
Declaration
public: FMatrix ConstraintMatrix
Field Value
| Type | Description |
|---|---|
| FMatrix |
Kind
Kind of actor class to use if no explicit actor class is set. In this case the matching actor class from the bounding box component will be used.
Declaration
public: EUxtBoundingBoxAffordanceKind Kind= EUxtBoundingBoxAffordanceKind::Center
Field Value
| Type | Description |
|---|---|
| EUxtBoundingBoxAffordanceKind |
Methods
| Improve this Doc View SourceGetWorldTransform(const FBox &Bounds, const FTransform &RootTransform)
Transform from affordance local space to world space, based on the root transform. Root transform scale is not included in the transform.
Declaration
public: FTransform GetWorldTransform(const FBox &Bounds, const FTransform &RootTransform) const
Parameters
| Type | Name | Description |
|---|---|---|
| const FBox & | Bounds | |
| const FTransform & | RootTransform |
Returns
| Type | Description |
|---|---|
| FTransform |