UDatasmithStaticMeshBlueprintLibrary::SetupStaticLighting

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

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](Programming/UnrealArchitecture/Reference/Functions)(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

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