Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_MeshBoneW-
Description
Transfer the bone weights from the SourceMesh to the TargetMesh. Assumes that the meshes are aligned. Otherwise, use the TransformMesh geometry script function to align them.
| Name | TransferBoneWeightsFromMesh |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshBoneWeightFunctions.h |
| Include Path | #include "GeometryScript/MeshBoneWeightFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/MeshBoneWeightFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshQueries|BoneWeights",
Meta=(ScriptMethod, HidePin="Debug"))
static UDynamicMesh * TransferBoneWeightsFromMesh
(
UDynamicMesh * SourceMesh,
UDynamicMesh * TargetMesh,
FGeometryScriptTransferBoneWeightsOptions Options,
FGeometryScriptMeshSelection Selection,
UGeometryScriptDebug * Debug
)
Parameters
| Name | Remarks |
|---|---|
| SourceMesh | The mesh we are transferring the weights from. |
| TargetMesh | The mesh we are transferring the weights to. |
| Options | The options to set for the transfer weight algorithm. |
| Selection | Optional subset of target mesh vertices to transfer weights to. If left empty, skin weights will be transferred to all target mesh vertices. |