Navigation
API > API/Plugins > API/Plugins/SkeletalMeshModifiers > API/Plugins/SkeletalMeshModifiers/USkinWeightModifier
Description
Strips out smallest influences to ensure each vertex does not have weight on more influences than MaxInfluences. Influences with the smallest weight are culled first.
| Name | EnforceMaxInfluences |
| 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 EnforceMaxInfluences
(
const int32 MaxInfluences
)
true if influences were removed, false otherwise
Parameters
| Name | Remarks |
|---|---|
| MaxInfluences | The maximum number of influences to allow for each vertex in the mesh. If -1 is passed, will use the project-wide MaxInfluences amount. |