Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Mechanics
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDragAlignmentInteraction
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/DragAlignmentMechanic.h |
| Include | #include "Mechanics/DragAlignmentMechanic.h" |
Syntax
UCLASS&40;&41;
class UDragAlignmentInteraction :
public UObject,
public FDragAlignmentBase,
public IModifierToggleBehaviorTarget
Remarks
Interaction that can be added to (potentially multiple) UCombinedTransformGizmo object to allow them to snap to scene geometry in rotation and translation. Generally driven by an externally-provided UKeyAsModifierInputBehavior, or alternately can be directly updated by calling ::OnUpdateModifierState()
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | AlignmentModifierID | ||
| bool | bAlignmentToggle | ||
| FViewCameraState | LastRenderCameraState | ||
| TWeakObjectPtr< USceneSnappingManager > | SceneSnappingManager |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | RegisterAsBehaviorTarget
(
UKeyAsModifierInputBehavior* KeyModifierBehavior |
Client can call this on setup to connect the interaction to an external Key behavior. | |
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Client must call this every frame to do alignment visualization rendering. | |
| void | Setup
(
USceneSnappingManager* SnappingManager |
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. |