FStaticMeshOperations::CreateLightMapUVLayout

Find and pack UV charts for lightmap.

Windows
MacOS
Linux

References

Module

StaticMeshDescription

Header

/Engine/Source/Runtime/StaticMeshDescription/Public/StaticMeshOperations.h

Include

#include "StaticMeshOperations.h"

Source

/Engine/Source/Runtime/StaticMeshDescription/Private/StaticMeshOperations.cpp

Syntax

static bool CreateLightMapUVLayout
(
    FMeshDescription & MeshDescription,
    int32 SrcLightmapIndex,
    int32 DstLightmapIndex,
    int32 MinLightmapResolution,
    ELightmapUVVersion LightmapUVVersion,
    const FOverlappingCorners & OverlappingCorners
)

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.

Returns

UV layout correctly generated

Parameters

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss