Navigation
Unreal Engine C++ API Reference > Editor > CurveEditor
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
Type | Name | Description |
---|---|---|
EAxisList::Type | RestrictedAxisList | Can be set to either X, Y, or None to control which axis GetSnappedPosition snaps to. |
Constructors
Type | Name | Description |
---|---|---|
FCurveEditorAxisSnap () |
Functions
Type | Name | Description |
---|---|---|
FVector2D | GetSnappedPosition ( FVector2D InitialPosition, FVector2D LastPosition, FVector2D CurrentPosition, const FPointerEvent& MouseEvent, FSnapState& InOutSnapState, const bool bIgnoreAxisLock ) |
Classes
Type | Name | Description |
---|---|---|
Public struct | FSnapState | Snapping is not stateless but we want to manage it through the central area. |