Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UStaticMeshComponent
Description
Returns the light and shadow map memory for this primite in its out variables.
Shadow map memory usage is per light whereof lightmap data is independent of number of lights, assuming at least one.
| Name | GetEstimatedLightAndShadowMapMemoryUsage |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/StaticMeshComponent.h |
| Include Path | #include "Components/StaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/StaticMeshComponent.cpp |
virtual bool GetEstimatedLightAndShadowMapMemoryUsage
(
int32 & TextureLightMapMemoryUsage,
int32 & TextureShadowMapMemoryUsage,
int32 & VertexLightMapMemoryUsage,
int32 & VertexShadowMapMemoryUsage,
int32 & StaticLightingResolution,
bool & bIsUsingTextureMapping,
bool & bHasLightmapTexCoords
) const
bool true if the mesh has static lighting; false if not
Parameters
| Name | Remarks |
|---|---|
| TextureLightMapMemoryUsage | Estimated memory usage in bytes for light map texel data |
| TextureShadowMapMemoryUsage | Estimated memory usage in bytes for shadow map texel data |
| VertexLightMapMemoryUsage | Estimated memory usage in bytes for light map vertex data |
| VertexShadowMapMemoryUsage | Estimated memory usage in bytes for shadow map vertex data |
| StaticLightingResolution | The StaticLightingResolution used for Texture estimates |
| bIsUsingTextureMapping | Set to true if the mesh is using texture mapping currently; false if vertex |
| bHasLightmapTexCoords | Set to true if the mesh has the proper UV channels |