UDragAlignmentMechanic::AddToGizmo

Adds this mechanic to the given gizmo.

Choose your operating system:

Windows

macOS

Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/DragAlignmentMechanic.h

Include

#include "Mechanics/DragAlignmentMechanic.h"

Source

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Mechanics/DragAlignmentMechanic.cpp

Syntax

void AddToGizmo
(
    UCombinedTransformGizmo * TransformGizmo,
    const TArray< const UPrimitiveComponent * > * ComponentsToIgnore,
    const TArray< const UPrimitiveComponent * > * InvisibleComponentsToInclude
)

Remarks

Adds this mechanic to the given gizmo. Can be called on multiple gizmos, and works both for UCombinedTransformGizmo and URepositionableTransformGizmo. For repositioning, the gizmo will not ignore anything in its alignment (so that the gizmo can be aligned to the target object(s)). For movement, the gizmo will ignore ComponentsToIgnore, as well as modified triangles if used for deformation.