Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
A wrapper around two IGizmoTransformSource's that generally forwards transforms to/from its ScaledTransformSource, but also forwards an unscaled version of the transform to UnscaledTransformSource on SetTransform calls. This handles the common case of wanting to apply the entire transform to one IGizmoTransformSource, but only the unscaled transform to a gizmo component (since we don't want to scale the gizmo component but do want to rotate/translate it).
| Name | UGizmoScaledAndUnscaledTransformSources |
| Type | class |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/TransformSources.h |
| Include Path | #include "BaseGizmos/TransformSources.h" |
Syntax
UCLASS (MinimalAPI)
class UGizmoScaledAndUnscaledTransformSources : public UGizmoBaseTransformSource
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGizmoBaseTransformSource → UGizmoScaledAndUnscaledTransformSources
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ScaledTransformSource | TScriptInterface< IGizmoTransformSource > | BaseGizmos/TransformSources.h | ||
| UnscaledTransformSource | TScriptInterface< IGizmoTransformSource > | BaseGizmos/TransformSources.h |
Functions
Public
Overridden from IGizmoTransformSource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FTransform GetTransform() |
Gets the transform from ScaledTransformSource. | BaseGizmos/TransformSources.h | |
virtual void SetTransform
(
const FTransform& NewTransform |
Calls SetTransform on ScaledTransformSource and passes the unscaled version to UnscaledTransformSource. | BaseGizmos/TransformSources.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UGizmoScaledAndUnscaledTransformSources * Construct
(
IGizmoTransformSource* ScaledSource, |
Constructs a UGizmoScaledAndUnscaledTransformSources by wrapping the provided IGizmoTransformSource as its scaled transform source, and the given gizmo in a UGizmoComponentWorldTransformSource as its unscaled transform source. | BaseGizmos/TransformSources.h | |
static UGizmoScaledAndUnscaledTransformSources * Construct
(
IGizmoTransformSource* ScaledSource, |
Constructs a UGizmoScaledAndUnscaledTransformSources around the given two IGizmoTransformSource's. | BaseGizmos/TransformSources.h |