FSnappingUtils::SnapDragLocationToNearestVertex

Snaps a delta drag movement to the nearest vertex

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/SnappingUtils.h

Include

#include "SnappingUtils.h"

Source

/Engine/Source/Editor/UnrealEd/Private/SnappingUtils.cpp

Syntax

static bool SnapDragLocationToNearestVertex
(
    const FVector & BaseLocation,
    FVector & DragDelta,
    FLevelEditorViewportClient * ViewportClient,
    bool bIsPivot
)

Remarks

Snaps a delta drag movement to the nearest vertex

Returns

true if anything was snapped

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss