Navigation
API > API/Plugins > API/Plugins/SkeletalMeshModifiers > API/Plugins/SkeletalMeshModifiers/USkinWeightModifier
References
| Module | SkeletalMeshModifiers |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/SkeletalMeshModifiers/Public/SkinWeightModifier.h |
| Include | #include "SkinWeightModifier.h" |
| Source | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/SkeletalMeshModifiers/Private/SkinWeightModifier.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"Weights"&41;
bool SetVertexWeights
&40;
const int32 VertexID,
const TMap< FName, float > & InWeights,
const bool bReplaceAll
&41;
Remarks
Set bone weights for a single vertex. The weights are stored as supplied and not normalized until either "CommitWeightsToSkeletalMesh()" or "NormalizeVertexWeights()" is called.
Parameters
| Name | Description |
|---|---|
| VertexID | the index of the vertex |
| InWeights | a map of Bone-Name to Weight for all bones that influence the specified vertex, ie {"Head": 0.6, "Neck": 0.4} |
| bReplaceAll | if true, all weights on this vertex will be replaced with the input weights. Default is false. |