Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
UGizmoComponentAxisSource is an IGizmoAxisSource implementation that provides one of the X/Y/Z axes of a Component's local coordinate system, mapped to World, based on an integer AxisIndex in range [0,2]. The Axis Origin is the Component's transform origin. Tangent vectors are provided.
| Name | UGizmoComponentAxisSource |
| Type | class |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/AxisSources.h |
| Include Path | #include "BaseGizmos/AxisSources.h" |
Syntax
UCLASS (MinimalAPI)
class UGizmoComponentAxisSource :
public UObject ,
public IGizmoAxisSource
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGizmoComponentAxisSource
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AxisIndex | int | Clamped internally to 0,1,2 | BaseGizmos/AxisSources.h | |
| bLocalAxes | bool | If false, returns World axes | BaseGizmos/AxisSources.h | |
| Component | TObjectPtr< USceneComponent > | BaseGizmos/AxisSources.h |
Functions
Public
Overridden from IGizmoAxisSource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector GetDirection() |
BaseGizmos/AxisSources.h | ||
virtual FVector GetOrigin() |
BaseGizmos/AxisSources.h | ||
virtual void GetTangentVectors
(
FVector& TangentXOut, |
Get the two tangent vectors that are orthogonal to the Direction vector. | BaseGizmos/AxisSources.h | |
virtual bool HasTangentVectors() |
BaseGizmos/AxisSources.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UGizmoComponentAxisSource * Construct
(
USceneComponent* ComponentIn, |
BaseGizmos/AxisSources.h |