Module |
|
Header |
/Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Public/LODUtilities.h |
Include |
#include "LODUtilities.h" |
Source |
/Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Private/LODUtilities.cpp |
static bool UpdateAlternateSkinWeights
(
USkeletalMesh * SkeletalMeshDest,
const FName & ProfileNameDest,
USkeletalMesh * SkeletalMeshSrc,
int32 LODIndexDest,
int32 LODIndexSrc,
FOverlappingThresholds OverlappingThresholds,
bool ShouldImportNormals,
bool ShouldImportTangents,
bool bUseMikkTSpace,
bool bComputeWeightedNormals
)
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
Parameter |
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 |