Navigation
API > API/Plugins > API/Plugins/RigLogicLib > API/Plugins/RigLogicLib/GeometryWriter
Warnings * The sum of weights must add up to 1.
Description
Both the mesh storage itself and it's skin weight storage will be implicitly resized (if needed) to provide storage for the number of meshes and/or skin-weight lists that are inferred from the specified indexes.
The sum of weights must add up to 1.
| Name | setSkinWeightsValues |
| Type | function |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/dna/layers/GeometryWriter.h |
| Include Path | #include "dna/layers/GeometryWriter.h" |
void setSkinWeightsValues
(
std::uint16_t meshIndex,
std::uint32_t vertexIndex,
const float * weights,
std::uint16_t count
)
Parameters
| Name | Remarks |
|---|---|
| meshIndex | A mesh's position in the zero-indexed array of meshes. |
| vertexIndex | A position in the zero-indexed array of vertex positions. |
| weights | The source address from which the weights are to be copied. |
| count | The number of weights to copy. |