Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
Adds a new curve with the provided information. Broadcasts a EAnimDataModelNotifyType::CurveAdded notify if successful.
| Name | AddCurve |
| 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 AddCurve
(
const FAnimationCurveIdentifier & CurveId,
int32 CurveFlags,
bool bShouldTransact
)
Whether or not the curve was successfully added
Parameters
| Name | Remarks |
|---|---|
| CurveId | Identifier for the to-be-added curve |
| CurveFlags | Flags to be set for the curve |
| bShouldTransact | Whether or not any undo-redo changes should be generated |