Navigation
API > API/Editor > API/Editor/CurveEditor
Given some keys, this class squishes the curves based on how much the selection is squished vertically. The squishing of the curves is achieved by interpolating the tangents to 0.
This is useful if you have a selection of keys, apply some operation that will move the keys, and want to flatten the curves. Example use case is e.g. tweening.
| Name | FTangentSelectionFlattener |
| Type | class |
| Header File | /Engine/Source/Editor/CurveEditor/Public/Misc/Mirror/TangentSelectionFlattener.h |
| Include Path | #include "Misc/Mirror/TangentSelectionFlattener.h" |
Syntax
class FTangentSelectionFlattener
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Misc/Mirror/TangentSelectionFlattener.h | |||
FTangentSelectionFlattener
(
const FCurveEditor& InCurveEditor |
Misc/Mirror/TangentSelectionFlattener.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedCurveData | TMap< FCurveModelID, FCurveTangentMirrorData > | Misc/Mirror/TangentSelectionFlattener.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddTangents
(
const FCurveEditor& InCurveEditor, |
Misc/Mirror/TangentSelectionFlattener.h | ||
void ComputeMirroringParallel
(
const FCurveEditor& InCurveEditor, |
Call in response to the keys having moved. Recomputes user specified tangents and flattens them. | Misc/Mirror/TangentSelectionFlattener.h | |
bool ResetFromSelection
(
const FCurveEditor& InCurveEditor |
Inits the tangent data from the curve editor's selection. | Misc/Mirror/TangentSelectionFlattener.h |