Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGizmoBaseTransformSource
- UGizmoScaledAndUnscaledTransformSources
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/TransformSources.h |
| Include | #include "BaseGizmos/TransformSources.h" |
Syntax
class UGizmoScaledAndUnscaledTransformSources : public UGizmoBaseTransformSource
Remarks
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).
Variables
| Type | Name | Description | |
|---|---|---|---|
| TScriptInterface< IGizmoTransformSource > | ScaledTransformSource | ||
| TScriptInterface< IGizmoTransformSource > | UnscaledTransformSource |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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. | |
| UGizmoScaledAndUnscaledTransformSources * | Construct
(
IGizmoTransformSource* ScaledSource, |
Constructs a UGizmoScaledAndUnscaledTransformSources around the given two IGizmoTransformSource's. |
Overridden from IGizmoTransformSource
| Type | Name | Description | |
|---|---|---|---|
| FTransform | GetTransform () |
Gets the transform from ScaledTransformSource. | |
| void | SetTransform
(
const FTransform& NewTransform |
Calls SetTransform on ScaledTransformSource and passes the unscaled version to UnscaledTransformSource. |