Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FTransferBoneWeights
Description
Transfer the bone weights from the source mesh to the given target mesh and store the result in the skin weight attribute with the given profile name.
Assumes that the InOutTargetMesh has bone attributes, use bIgnoreBoneAttributes flag to ignore the bone attributes and skip re-indexing.
| Name | TransferWeightsToMesh |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/TransferBoneWeights.h |
| Include Path | #include "Operations/TransferBoneWeights.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/TransferBoneWeights.cpp |
virtual bool TransferWeightsToMesh
(
FDynamicMesh3 & InOutTargetMesh,
const FName & InTargetProfileName
)
true if the algorithm succeeds, false if it failed or was canceled by the user.
Parameters
| Name | Remarks |
|---|---|
| InOutTargetMesh | Target mesh we are transfering weights into |
| InTargetProfileName | Skin weight profile name we are writing into. If the profile with that name exists, then the data will be overwritten, otherwise a new attribute will be created. |