Language:
Discover
By Skill Level
By Category

FSnappingUtils

Choose your OS:

Syntax

class FSnappingUtils

Functions

Name Description

Public function Static

void

 

ClearSnappingHelpers

(
    bool bClearImmediately
)

Clears all vertices being drawn to help a user snap

Public function Static

void

 

DrawSnappingHelpers

(
    const FSceneView * View,
    FPrimitiveDrawInterface * PDI
)

Draws snapping helpers

Public function Static

void

 

EnableActorSnap

(
    bool bEnable
)

Set user setting for actor snap.

Public function Static

float

 

GetActorSnapDistance

(
    bool bScalar
)

Access user setting for distance. Fractional 0.0->100.0

Public function Static

void

 

InitEditorSnappingTools()

Initialize the snapping system

Public function Static

bool

 

IsRotationSnapEnabled()

True if orientation snapping is enabled

Public function Static

bool

 

IsScaleSnapEnabled()

True if orientation snapping is enabled

Public function Static

bool

 

IsSnapToActorEnabled()

True if snapping actors to other actors is enabled

Public function Static

bool

 

IsSnapToGridEnabled()

True if snapping (translation) to the grid is enabled

Public function Static

void

 

SetActorSnapDistance

(
    float Distance
)

Set user setting for distance. Fractional 0.0->100.0

Public function Static

bool

 

SnapActorsToNearestActor

(
    FVector & DragDelta,
    FLevelEditorViewportClient * Vi...
)

Attempts to snap the selected actors to the nearest other actor

Public function Static

bool

 

SnapDraggedActorsToNearestVertex

(
    FVector & DragDelta,
    FLevelEditorViewportClient * Vi...
)

Snaps actors to the nearest vertex on another actor

true if anything was snapped

Public function Static

bool

 

SnapDragLocationToNearestVertex

(
    const FVector & BaseLocation,
    FVector & DragDelta,
    FLevelEditorViewportClient * Vi...
)

Snaps a delta drag movement to the nearest vertex

true if anything was snapped

Public function Static

bool

 

SnapLocationToNearestVertex

(
    FVector & Location,
    const FVector2D & MouseLocation,
    FLevelEditorViewportClient * Vi...,
    FVector & OutVertexNormal,
    bool bDrawVertHelpers
)

Snaps a location to the nearest vertex

true if anything was snapped

Public function Static

void

 

SnapPointToGrid

(
    FVector & Point,
    const FVector & GridBase
)

Snaps a point value to the positional grid

Public function Static

void

 

SnapRotatorToGrid

(
    FRotator & Rotation
)

Snaps a rotator to the rotational grid

Public function Static

void

 

SnapScale

(
    FVector & Point,
    const FVector & GridBase
)

Snaps a scale value to the scale grid

Public function Static

bool

 

SnapToBSPVertex

(
    FVector & Location,
    FVector GridBase,
    FRotator & Rotation
)

Constants

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/SnappingUtils.h