FCurveEditorAxisSnap

Utility struct that acts as a way to control snapping to a specific axis based on UI settings, or shift key.

Choose your operating system:

Windows

macOS

Linux

References

Module

CurveEditor

Header

/Engine/Source/Editor/CurveEditor/Public/CurveEditorSnapMetrics.h

Include

#include "CurveEditorSnapMetrics.h"

Syntax

struct FCurveEditorAxisSnap

Remarks

Utility struct that acts as a way to control snapping to a specific axis based on UI settings, or shift key.

Variables

Name Description

Public variable

EAxisList::Type

 

RestrictedAxisList

Can be set to either X, Y, or None to control which axis GetSnappedPosition snaps to.

Constructors

Name Description

Public function

FCurveEditorAxisSnap()

Functions

Name Description

Public function

FVector2D

 

GetSnappedPosition

(
    FVector2D InitialPosition,
    FVector2D CurrentPosition,
    const FPointerEvent& MouseEvent,
    FSnapState& InOutSnapState,
    const bool bIgnoreAxisLock
)

Classes

Name

Description

Public struct

FSnapState

Snapping is not stateless but we want to manage it through the central area.