Navigation
API > API/Editor > API/Editor/CurveEditor
Utility struct that acts as a way to control snapping to a specific axis based on UI settings, or shift key.
| |
|
| Name |
FCurveEditorAxisSnap |
| Type |
struct |
| Header File |
/Engine/Source/Editor/CurveEditor/Public/CurveEditorSnapMetrics.h |
| Include Path |
#include "CurveEditorSnapMetrics.h" |
Syntax
struct FCurveEditorAxisSnap
Constructors
Structs
| Name |
Remarks |
| FSnapState |
Snapping is not stateless but we want to manage it through the central area. |
Variables
Public
| Name |
Type |
Remarks |
Include Path |
Unreal Specifiers |
| RestrictedAxisList |
ECurveEditorSnapAxis |
Can be set to either X, Y, or None to control which axis GetSnappedPosition snaps to. |
CurveEditorSnapMetrics.h |
|
Functions
Public
| Name |
Remarks |
Include Path |
Unreal Specifiers |
FVector2D GetSnappedPosition
(
const FVector2D& InitialPosition,
const FVector2D& LastPosition,
const FVector2D& CurrentPosition,
const FPointerEvent& MouseEvent,
FSnapState& InOutSnapState,
const bool bIgnoreAxisLock
)
|
Combines an InitialPosition and mouse movement to produce a final position that respects the axis snapping settings. |
CurveEditorSnapMetrics.h |
|