Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UStaticMeshComponent
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 |
virtual bool SetStaticLightingMapping
(
bool bTextureMapping,
int32 ResolutionToUse
)
Remarks
Switches the static mesh component to use either Texture or Vertex static lighting. bool true if successfully set; false if not If false, set it to use vertex light mapping.
Parameters
| Name | 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. |