Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMeshSculptLayers
Description
Merge the contribution of a range of layers. Note: Shifts all sculpt layers above this range downward, which may invalidate externally-held sculpt layer indices. May also change the active layer.
| Name | MergeSculptLayers |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshSculptLayers.h |
| Include Path | #include "DynamicMesh/DynamicMeshSculptLayers.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMeshSculptLayers.cpp |
bool MergeSculptLayers
(
int32 StartIndex,
int32 EndIndex,
bool bUseWeights
)
Parameters
| Name | Remarks |
|---|---|
| StartIndex | Index of the first layer to merge |
| EndIndex | Index of the last layer to merge |
| bUseWeights | Whether to merge layers based on their current weight strength. Requires StartIndex have non-zero weight. If false, the mesh vertices may move after merge. |