Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/UPlanePositionGizmo
Description
Helper that initializes AxisSource, ParameterSource, HitTarget, and StateTarget for the common case of being used to control the uniform scale of a transform, where the interaction plane remains aligned to the camera. Safe to use for reinitialization. Note: if SharedState contains a CameraAxisSource, this subgizmo will use it and will assume that something else is responsible for updating it. Otherwise this subgizmo will set the CameraAxisSource and update it in its own Tick function.
| Name | InitializeAsUniformScaleGizmo |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/PlanePositionGizmo.h |
| Include Path | #include "BaseGizmos/PlanePositionGizmo.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/PlanePositionGizmo.cpp |
bool InitializeAsUniformScaleGizmo
(
const UE::GizmoUtil::FTransformSubGizmoCommonParams & Params,
bool bDisallowNegativeScaling,
UE::GizmoUtil::FTransformSubGizmoSharedState * SharedState
)