Navigation
Unreal Engine C++ API Reference > Developer > SkeletalMeshUtilitiesCommon > FLODUtilities > UpdateAlternateSkinWeights
References
Module | SkeletalMeshUtilitiesCommon |
Header | /Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Public/LODUtilities.h |
Include | #include "LODUtilities.h" |
Source | /Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Private/LODUtilities.cpp |
static bool UpdateAlternateSkinWeights ( [USkeletalMesh](API\Runtime\Engine\Engine\USkeletalMesh) * SkeletalMeshDest, const [FName](API\Runtime\Core\UObject\FName) & ProfileNameDest, [USkeletalMesh](API\Runtime\Engine\Engine\USkeletalMesh) * SkeletalMeshSrc, int32 LODIndexDest, int32 LODIndexSrc, const [IMeshUtilities::MeshBuildOptions](API\Developer\MeshUtilities\IMeshUtilities\MeshBuildOptions) & Options )
Remarks
This function apply the skinning weights from asource skeletal mesh to the destination skeletal mesh. The Destination will receive the weights has the alternate weights. We extract the imported skinning weight data from the SkeletalMeshSrc and we save the imported raw data into the destination mesh. Then we call UpdateAlternateSkinWeights without the SkeletalMeshSrc
Parameters
Name | Description |
---|---|
SkeletalMeshDest | The skeletal mesh that will receive the alternate skinning weights. |
SkeletalMeshSrc | The skeletal mesh that contain the alternate skinning weights. |
LODIndexDest | the destination LOD |
LODIndexSrc | the Source LOD index |