UAnimDataController::SetCurveColor

Changes the color of the curve with provided identifier.

Unreal Engine C++ API Reference > Developer > AnimationDataController > UAnimDataController

References

   
Module AnimationDataController
Header /Engine/Source/Developer/AnimationDataController/Public/AnimDataController.h
Include #include "AnimDataController.h"
Source /Engine/Source/Developer/AnimationDataController/Private/AnimDataController.cpp
virtual bool SetCurveColor
(
    const [FAnimationCurveIdentifier](API\Runtime\Engine\Animation\AnimData\FAnimationCurveIdentifier) & CurveId,
    [FLinearColor](API\Runtime\Core\Math\FLinearColor) Color,
    bool bShouldTransact
)

Remarks

Changes the color of the curve with provided identifier. Broadcasts a EAnimDataModelNotifyType::CurveRenamed notify if successful. Currently changing curve colors is only supported for float curves. Whether or not the curve color was successfully changed

Parameters

Name Description
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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library