Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
Scales the curve with provided identifier. Broadcasts a EAnimDataModelNotifyType::CurveScaled notify if successful.
| Name | ScaleCurve |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include Path | #include "Animation/AnimData/IAnimationDataController.h" |
UFUNCTION (BlueprintCallable, Category=CurveData)
bool ScaleCurve
(
const FAnimationCurveIdentifier & CurveId,
float Origin,
float Factor,
bool bShouldTransact
)
Whether or not scaling the curve was successful
Parameters
| Name | Remarks |
|---|---|
| CurveId | Identifier of the curve to scale |
| Origin | Time to use as the origin when scaling the curve |
| Factor | Factor with which the curve is supposed to be scaled |
| bShouldTransact | Whether or not any undo-redo changes should be generated |