UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSceneSnapQueryResult Struct Reference

#include <SceneSnappingManager.h>

Public Member Functions

INTERACTIVETOOLSFRAMEWORK_API EToolContextCoordinateSystem GetCoordinateSpace (const FSceneSnapQueryRequest &InFromRequest) const
 

Public Attributes

TOptional< EToolContextCoordinateSystemCoordinateSpace
 
AActorTargetActor = nullptr
 
UActorComponentTargetComponent = nullptr
 
ESceneSnapQueryTargetType TargetType = ESceneSnapQueryTargetType::None
 
FVector Position
 
FVector Normal
 
FQuat DeltaRotation
 
double RotationAngle
 
FVector Scale
 
FVector TriVertices [3]
 
int TriSnapIndex
 

Detailed Description

Computed result of a USceneSnappingManager snap query request

Member Function Documentation

◆ GetCoordinateSpace()

EToolContextCoordinateSystem FSceneSnapQueryResult::GetCoordinateSpace ( const FSceneSnapQueryRequest InFromRequest) const
Returns
The CoordinateSpace if set, otherwise the ResultCoordinateSpace from the provided request

Member Data Documentation

◆ CoordinateSpace

TOptional<EToolContextCoordinateSystem> FSceneSnapQueryResult::CoordinateSpace

(Optionally set) Coordinate space of the result data

◆ DeltaRotation

FQuat FSceneSnapQueryResult::DeltaRotation

Snap rotation delta (may not be set depending on query types)

◆ Normal

FVector FSceneSnapQueryResult::Normal

Snap normal (may not be set depending on query types)

◆ Position

FVector FSceneSnapQueryResult::Position

Snap position (may not be set depending on query types)

◆ RotationAngle

double FSceneSnapQueryResult::RotationAngle

Snap rotation angle (may not be set depending on query types)

◆ Scale

FVector FSceneSnapQueryResult::Scale

Snap scale (may not be set depending on query types)

◆ TargetActor

AActor* FSceneSnapQueryResult::TargetActor = nullptr

Actor that owns snap target

◆ TargetComponent

UActorComponent* FSceneSnapQueryResult::TargetComponent = nullptr

Component that owns snap target

◆ TargetType

ESceneSnapQueryTargetType FSceneSnapQueryResult::TargetType = ESceneSnapQueryTargetType::None

What kind of geometric element was snapped to

◆ TriSnapIndex

int FSceneSnapQueryResult::TriSnapIndex

Vertex/Edge index we snapped to in triangle

◆ TriVertices

FVector FSceneSnapQueryResult::TriVertices[3]

Vertices of triangle that contains result (for debugging, may not be set)


The documentation for this struct was generated from the following files: