Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlendProfile
Description
Update all the bone weights for some provided FBlendSampleData. This internally will iterate over all entries inside the InOutCurrentData::PerBoneBlendData parameter and call CalculateBoneWeight for each entry.
| Name | UpdateBoneWeights |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/BlendProfile.h |
| Include Path | #include "Animation/BlendProfile.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/BlendProfile.cpp |
void UpdateBoneWeights
(
FBlendSampleData & InOutCurrentData,
const FAlphaBlend & BlendInfo,
float BlendStartAlpha,
float MainWeight,
bool bInverse
)
Parameters
| Name | Remarks |
|---|---|
| InOutCurrentData | This is both input and output. The FBlendSampleData::PerBoneBlendData member will be updated with the weight values as calculated by CalculateBoneWeight for each entry. |
| BlendInfo | Information about the blend. This contains things like the blend duration and current alpha. Not all blend profile modes might use this data. |
| BlendStartAlpha | The linear alpha value, so not sampled from the curve, of where the blend started. This is mostly used when we are in the middle of a blend and suddenly reverse its direction. This value basically should contain the alpha value of the blend at the point of reversal. |
| MainWeight | The weight of the blend. This is used in the weight factor based mode, where this weight is multiplied by the bone factors. |
| bInverse | Should we inverse the weights? This can be used for things like transition reversal. In most cases you would want it set to false. |