Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_MeshBoneW-
Description
Copies all bone weights from a source profile onto a target profile, on the same mesh, replacing all weights that existed on the target profile. If either the source or the target profile didn't exist, then bProfileExisted will be set to false and no weights are copied.
| Name | MeshCopyBoneWeights |
| 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))
static UDynamicMesh * MeshCopyBoneWeights
(
UDynamicMesh * TargetMesh,
bool & bProfileExisted,
FGeometryScriptBoneWeightProfile TargetProfile,
FGeometryScriptBoneWeightProfile SourceProfile
)
Parameters
| Name | Remarks |
|---|---|
| bProfileExisted | will be returned true if both of the requested bone weight profiles exist |
| TargetProfile | The skin weight profile to copy to. |
| SourceProfile | The skin weight profile to copy from. |