Navigation
API > API/Runtime > API/Runtime/StaticMeshDescription > API/Runtime/StaticMeshDescription/FStaticMeshOperations
References
| Module | StaticMeshDescription |
| Header | /Engine/Source/Runtime/StaticMeshDescription/Public/StaticMeshOperations.h |
| Include | #include "StaticMeshOperations.h" |
| Source | /Engine/Source/Runtime/StaticMeshDescription/Private/StaticMeshOperations.cpp |
static bool CreateLightMapUVLayout
&40;
FMeshDescription & MeshDescription,
int32 SrcLightmapIndex,
int32 DstLightmapIndex,
int32 MinLightmapResolution,
ELightmapUVVersion LightmapUVVersion,
const FOverlappingCorners & OverlappingCorners
&41;
Remarks
Find and pack UV charts for lightmap. The packing algorithm uses a rasterization method, hence the resolution parameter.
If the given minimum resolution is not enough to handle all the charts, generation will fail. UV layout correctly generated
Parameters
| Name | Description |
|---|---|
| MeshDescription | Edited mesh |
| SrcLightmapIndex | index of the source UV channel |
| DstLightmapIndex | index of the destination UV channel |
| MinLightmapResolution | Minimum resolution used for the packing |
| LightmapUVVersion | Algorithm version |
| OverlappingCorners | Overlapping corners of the given mesh |