Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FSnappingUtils
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/SnappingUtils.h |
| Include | #include "SnappingUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/SnappingUtils.cpp |
static bool SnapDragLocationToNearestVertex
&40;
const FVector & BaseLocation,
FVector & DragDelta,
FLevelEditorViewportClient &42; ViewportClient,
bool bIsPivot
&41;
Remarks
Snaps a delta drag movement to the nearest vertex true if anything was snapped
Parameters
| Name | Description |
|---|---|
| BaseLocation | Location that should be snapped before any drag is applied |
| DragDelta | Delta drag movement that should be snapped. This value will be updated such that BaseLocation+DragDelta is the nearest snapped verted |
| ViewportClient | The viewport client being dragged in. |