Navigation
API > API/Editor > API/Editor/CurveEditor > API/Editor/CurveEditor/FCurveModel
Description
Gets the value of ALL attributes including those that are auto-computed. Use this version if you want to know values e.g. the tangents or weights. Useful for UI code that visualizes tangents. The result is not intended to be passed to SetKeyAttributes; calling SetKeyAttributes would correct the passed in attributes to reflect the user settings.
Typically, attributes reflect the settings that the user has manually configured for the keys, so certain attributes may remain unset. For instance, when TangentMode == RCTM_Auto, tangents and weights are automatically computed, meaning attributes like ArriveTangent are not explicitly set. Setting ArriveTangent would imply a user-defined value, which is incompatible with TangentMode == RCTM_Auto.
In some situations, you don't want to know the values the user has set but the values as they would be used for evaluation, e.g. tangents, weights, etc. For these cases, you can use GetKeyAttributesIncludingAutoComputed.
| Name | GetKeyAttributesIncludingAutoComputed |
| Type | function |
| Header File | /Engine/Source/Editor/CurveEditor/Public/CurveModel.h |
| Include Path | #include "CurveModel.h" |
virtual void GetKeyAttributesIncludingAutoComputed
(
TArrayView < const FKeyHandle > InKeys,
TArrayView < FKeyAttributes > OutAttributes
) const