Navigation
API > API/Runtime > API/Runtime/AnimationCore
References
| Module | AnimationCore |
| Header | /Engine/Source/Runtime/AnimationCore/Public/BoneWeights.h |
| Include | #include "BoneWeights.h" |
Syntax
class FBoneWeight
Constructors
| Type | Name | Description | |
|---|---|---|---|
FBoneWeight () |
Default constructor. NOTE: The values are uninitialized. | ||
FBoneWeight
(
FBoneIndexType InBoneIndex, |
A constructor for old-style bone weights where the weight was stored as an unsigned eight bit integer. | ||
FBoneWeight
(
FBoneIndexType InBoneIndex, |
A constructor for bone weights where the weight is stored as an unsigned sixteen bit integer. | ||
FBoneWeight
(
FBoneIndexType InBoneIndex, |
A constructor for bone weights which converts the weight from a float value in the [0-1] range. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | DescSortByWeightPredicate
(
const FBoneWeight& A, |
A standard predicate we use for sorting by weight, in a descending order of weights | |
| FBoneWeight | FromInt32
(
int32 InBoneWeight |
Converts an int32 to an FBoneWeight object and returns it. | |
| FBoneIndexType | GetBoneIndex () |
Returns the bone stored index. | |
| constexpr FBoneIndexType | The maximum raw weight value for a bone influence. | ||
| uint16 | GetRawWeight () |
Returns the stored weight in the container's raw format, avoiding floating point conversion. | |
| uint32 | GetTypeHash () |
Returns a hash value from the bone weight values | |
| float | GetWeight () |
Returns the stored weight value as a float in the [0-1] range. | |
| void | |||
| void | SetBoneIndex
(
FBoneIndexType InBoneIndex |
Set the bone stored index. | |
| void | SetRawWeight
(
const uint16 InRawWeight |
Set the stored weight in the raw format. This avoids any floating point conversion. | |
| void | SetWeight
(
float InWeight |
Set stored weight as a float. | |
| int32 | ToInt32 () |
Returns the contents of this object as an int32. | |
| FString | ToString () |
A helper function to return a human-readable version of the bone weight. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FBoneWeight& InBoneWeight |
Returns true if this object's bone weight values are not equal to the other container's values. | |
| bool | operator==
(
const FBoneWeight& InBoneWeight |
Returns true if this object's bone weight values are equal to the other container's values. |