Navigation
API > API/Plugins > API/Plugins/SkeletalMeshModifiers > API/Plugins/SkeletalMeshModifiers/USkinWeightModifier
Description
Remove all weights below the given threshold value, on the given vertex. Influences that are pruned will no longer receive weight from normalization.
| Name | PruneVertexWeights |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/SkeletalMeshModifiers/Public/SkinWeightModifier.h |
| Include Path | #include "SkinWeightModifier.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/SkeletalMeshModifiers/Private/SkinWeightModifier.cpp |
UFUNCTION (BlueprintCallable, Category="Weights")
bool PruneVertexWeights
(
const int32 VertexID,
const float WeightThreshold
)
true if influences were removed, false otherwise
Parameters
| Name | Remarks |
|---|---|
| VertexID | the index of the vertex to prune weights on |
| WeightThreshold | vertex weights below this value will be removed. |