UStaticMeshComponent::SetStaticLightingMapping

Switches the static mesh component to use either Texture or Vertex static lighting.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/StaticMeshComponent.h

Include

#include "Components/StaticMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/StaticMeshLight.cpp

Syntax

virtual bool SetStaticLightingMapping
(
    bool bTextureMapping,
    int32 ResolutionToUse
)

Remarks

Switches the static mesh component to use either Texture or Vertex static lighting.

Returns

bool true if successfully set; false if not If false, set it to use vertex light mapping.

Parameters

Parameter

Description

bTextureMapping

If true, set the component to use texture light mapping. If false, set it to use vertex light mapping.

ResolutionToUse

If != 0, set the resolution to the given value.

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