Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
Changes the color of the curve with provided identifier. Broadcasts a EAnimDataModelNotifyType::CurveColorChanged notify if successful. Currently changing curve colors is only supported for float curves.
| Name | SetCurveColor |
| 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 SetCurveColor
(
const FAnimationCurveIdentifier & CurveId,
FLinearColor Color,
bool bShouldTransact
)
Whether or not the curve color was successfully changed
Parameters
| Name | Remarks |
|---|---|
| CurveId | Identifier of the curve to change the color for |
| Color | Color to which the curve is to be set |
| bShouldTransact | Whether or not any undo-redo changes should be generated |