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 SnapLocationToNearestVertex
&40;
FVector & Location,
const FVector2D & MouseLocation,
FLevelEditorViewportClient &42; ViewportClient,
FVector & OutVertexNormal,
bool bDrawVertHelpers
&41;
Remarks
Snaps a location to the nearest vertex true if anything was snapped
Parameters
Name | Description |
---|---|
Location | The location to snap |
MouseLocation | The current 2d mouse location. Vertices closer to the mouse are favored |
ViewportClient | The viewport client being used |
OutVertexNormal | The normal at the closest vertex |