Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
Set an individual flag for the curve with provided identifier. Broadcasts a EAnimDataModelNotifyType::CurveFlagsChanged notify if successful.
| Name | SetCurveFlag |
| 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 SetCurveFlag
(
const FAnimationCurveIdentifier & CurveId,
EAnimAssetCurveFlags Flag,
bool bState,
bool bShouldTransact
)
Whether or not the flag state was successfully set
Parameters
| Name | Remarks |
|---|---|
| CurveId | Identifier for the curve for which the flag state is to be set |
| Flag | Flag for which the state is supposed to be set |
| bState | State of the flag to be, true=set/false=not set |
| bShouldTransact | Whether or not any undo-redo changes should be generated |