Navigation
API > API/Plugins > API/Plugins/ModelingComponents
Mechanic that can be added to (potentially multiple) UCombinedTransformGizmo object to allow them to snap to scene geometry in rotation and translation when the Ctrl key is pressed.
| Name | UDragAlignmentMechanic |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/DragAlignmentMechanic.h |
| Include Path | #include "Mechanics/DragAlignmentMechanic.h" |
Syntax
UCLASS (MinimalAPI)
class UDragAlignmentMechanic :
public UInteractionMechanic ,
public FDragAlignmentBase ,
public IModifierToggleBehaviorTarget
Inheritance Hierarchy
- FDragAlignmentBase → UDragAlignmentMechanic
- UObjectBase → UObjectBaseUtility → UObject → UInteractionMechanic → UDragAlignmentMechanic
Implements Interfaces
Functions
Public
Overridden from UInteractionMechanic
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Render
(
IToolsContextRenderAPI* RenderAPI |
Mechanics/DragAlignmentMechanic.h | ||
virtual void Setup
(
UInteractiveTool* ParentToolIn |
Mechanics/DragAlignmentMechanic.h | ||
virtual void Shutdown() |
Mechanics/DragAlignmentMechanic.h |
Overridden from FDragAlignmentBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool GetAlignmentModeEnabled() |
Mechanics/DragAlignmentMechanic.h | ||
virtual FViewCameraState GetCameraState() |
Mechanics/DragAlignmentMechanic.h | ||
virtual USceneSnappingManager * GetSnappingManager() |
Subclasses must implement these various API functions for the interaction to function | Mechanics/DragAlignmentMechanic.h | |
virtual UObject * GetUObjectContainer() |
Mechanics/DragAlignmentMechanic.h |
Overridden from IModifierToggleBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnUpdateModifierState
(
int ModifierID, |
IModifierToggleBehaviorTarget implementation. | Mechanics/DragAlignmentMechanic.h |