Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos > API/Runtime/InteractiveToolsFramework/BaseGizmos/ACombinedTransformGizmoActor
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/CombinedTransformGizmo.h |
| Include | #include "BaseGizmos/CombinedTransformGizmo.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/CombinedTransformGizmo.cpp |
bool ReplaceSubGizmoComponent
(
ETransformGizmoSubElements Element,
UPrimitiveComponent * NewComponent,
const FTransform & SubGizmoToGizmo,
UPrimitiveComponent ** ReplacedComponentOut
)
Remarks
Replaces the component corresponding to the given element with a new component. true if successful, which will be always as long as parameters are valid.
Parameters
| Name | Description |
|---|---|
| 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 this actor in its outer chain, i.e. it should have been created as NewObject |
| SubGizmoToGizmo | Transform from component to gizmo (i.e. the relative transform). |
| ReplacedComponentOut | Outputs a pointer to the replaced component, if there was one. Note that the component will already have had DestroyComponent() called on it. |