Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/UCombinedTransformGizmo
Description
Sets a given sub gizmo component to the given component. This is only valid to call after Setup(), but can be before or after SetActiveTarget.
| Name | SetSubGizmoComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/CombinedTransformGizmo.h |
| Include Path | #include "BaseGizmos/CombinedTransformGizmo.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/CombinedTransformGizmo.cpp |
bool SetSubGizmoComponent
(
ETransformGizmoSubElements Element,
UPrimitiveComponent * Component,
const FTransform & SubGizmoToGizmo
)
true if successful.
Parameters
| Name | Remarks |
|---|---|
| Element | Element to replace, should be a single element (no combined flags), except that RotateAllAxes will be interpreted to mean the rotation sphere component. |
| NewComponent | The component to replace with. If nullptr, no component is added (i.e. the function just deletes the existing component). If not nullptr, then the component should have the gizmo actor in its outer chain, e.g. NewObject |
| SubGizmoToGizmo | Transform from component to gizmo. |