UDatasmithStaticMeshBlueprintLibrary::SetupStaticLighting

Setup the Lightmap UVs settings to enable or disable the lightmap generation on the static meshes found in the Assets list

Choose your operating system:

Windows

macOS

Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithBlueprintLibrary.h

Include

#include "DatasmithBlueprintLibrary.h"

Source

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/DatasmithBlueprintLibrary.cpp

Syntax

UFUNCTION(BlueprintCallable, Category="Datasmith | Static Mesh")
static void SetupStaticLighting
(
    const TArray< UObject * > & Objects,
    bool bApplyChanges,
    bool bGenerateLightmapUVs,
    float LightmapResolutionIdealRatio
)

Remarks

Setup the Lightmap UVs settings to enable or disable the lightmap generation on the static meshes found in the Assets list

Parameters

Parameter

Description

Assets

List of objects to set the generate lightmap uvs flag on. Only Static Meshes and Static Mesh Components will be affected.

bApplyChanges

Indicates if changes must be apply or not.

bGenerateLightmapUVs

The value to set for the generate lightmap uvs flag.

LightmapResolutionIdealRatio

The desired lightmap density ratio