Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FSnappingUtils
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool SnapLocationToNearestVertex
(
FVector& Location, |
SnappingUtils.h | ||
static bool SnapLocationToNearestVertex
(
FVector& Location, |
Snaps a location to the nearest vertex | SnappingUtils.h |
SnapLocationToNearestVertex(FVector &, const FVector2D &, FLevelEditorViewportClient *, FVector &, bool)
| Name | SnapLocationToNearestVertex |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/SnappingUtils.h |
| Include Path | #include "SnappingUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/SnappingUtils.cpp |
static bool SnapLocationToNearestVertex
(
FVector & Location,
const FVector2D & MouseLocation,
FLevelEditorViewportClient * ViewportClient,
FVector & OutVertexNormal,
bool bDrawVertHelpers
)
SnapLocationToNearestVertex(FVector &, const FVector2D &, FEditorViewportClient *, FVector &, bool, const TSet< TWeakObjectPtr< class AActor > > &)
Description
Snaps a location to the nearest vertex
| Name | SnapLocationToNearestVertex |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/SnappingUtils.h |
| Include Path | #include "SnappingUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/SnappingUtils.cpp |
static bool SnapLocationToNearestVertex
(
FVector & Location,
const FVector2D & MouseLocation,
FEditorViewportClient * ViewportClient,
FVector & OutVertexNormal,
bool bDrawVertHelpers,
const TSet< TWeakObjectPtr < class AActor > > & ActorsToIgnore
)
true if anything was snapped
Parameters
| Name | Remarks |
|---|---|
| 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 |