UGizmoScaledAndUnscaledTransformSources

A wrapper around two [IGizmoTransformSource](API\Runtime\InteractiveToolsFramework\BaseGizmos\IGizmoTransformSource)'s that generally forwards transforms to/from its ScaledTransformSource, but also forwards an unscaled version of the transform to UnscaledTransformSource on SetTransform calls.

Choose your operating system:

Windows

macOS

Linux

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

Functions

Name Description

Public function Static

UGizmoScaled...

 

Construct

(
    IGizmoTransformSource* ScaledS...,
    USceneComponent* GizmoComponen...,
    UObject* Outer
)

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.

Public function Static

UGizmoScaled...

 

Construct

(
    IGizmoTransformSource* ScaledS...,
    IGizmoTransformSource* Unscale...,
    UObject* Outer
)

Constructs a UGizmoScaledAndUnscaledTransformSources around the given two IGizmoTransformSource's.

Overridden from IGizmoTransformSource

Name Description

Public function Virtual Const

FTransform

 

GetTransform()

Gets the transform from ScaledTransformSource.

Public function Virtual

void

 

SetTransform

(
    const FTransform& NewTransform
)

Calls SetTransform on ScaledTransformSource and passes the unscaled version to UnscaledTransformSource.