Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlendProfile
Description
Calculate the blend weight for a given bone. This methoid basically defines how each blend profile mode works.
| Name | CalculateBoneWeight |
| 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 |
static float CalculateBoneWeight
(
float BoneFactor,
EBlendProfileMode Mode,
const FAlphaBlend & BlendInfo,
float BlendStartAlpha,
float MainWeight,
bool bInverse
)
Parameters
| Name | Remarks |
|---|---|
| BoneFactor | This is the per bone value setup in the blend profile editor. The impact of this value depends on what blend profile mode is used. |
| Mode | The blend profile mode that should be used in combination with this bone factor. |
| 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. |