Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh > API/Runtime/GeometryCore/DynamicMesh/TDynamicVertexSkinWeightsAttribu-
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicVertexSkinWeightsAttribute.h |
| Include | #include "DynamicMesh/DynamicVertexSkinWeightsAttribute.h" |
bool ReindexBoneIndicesToSkeleton
&40;
const TArray< FName > & FromRefSkeleton,
const TArray< FName > & ToRefSkeleton
&41;
Remarks
Re-index bone indices of the skin weights from one reference skeleton (represented by an array of bone names) to another.
Reasons for failure are:
- bone index of one of the bone weights is larger than the number of bones in FromRefSkeleton, meaning the weights most likely were not computed with respect to the FromRefSkeleton.
- one of the bone weights references a bone in FromRefSkeleton that doesn't exist in ToRefSkeleton.
- ToRefSkeleton contains duplicates.
FromRefSkeleton can contain bones that are not present in ToRefSkeleton as long as those bones are not referenced by any of the weights. true on success, false otherwise
Parameters
| Name | Description |
|---|---|
| FromRefSkeleton | The reference skeleton that the current skin weights are indexed against. |
| ToRefSkeleton | The new reference skeleton that should be used to reindex the weights. |