Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Mechanics
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractionMechanic
- UDragAlignmentMechanic
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/DragAlignmentMechanic.h |
| Include | #include "Mechanics/DragAlignmentMechanic.h" |
Syntax
UCLASS&40;&41;
class UDragAlignmentMechanic :
public UInteractionMechanic,
public FDragAlignmentBase,
public IModifierToggleBehaviorTarget
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | AlignmentModifierID | ||
| bool | bAlignmentToggle |
Overridden from UInteractionMechanic
| Type | Name | Description | |
|---|---|---|---|
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Allow the Mechanic to do any custom drawing (ie via PDI/RHI) | |
| void | Setup
(
UInteractiveTool* ParentTool |
Called to initialize the InteractionMechanic | |
| void | Shutdown () |
Called to clean up the InteractionMechanic |
Overridden from FDragAlignmentBase
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| FViewCameraState | |||
| USceneSnappingManager * | Subclasses must implement these various API functions for the interaction to function | ||
| UObject * |
Overridden from IModifierToggleBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| void | OnUpdateModifierState
(
int ModifierID, |
IModifierToggleBehaviorTarget implementation. |