UStaticMeshComponent::GetEstimatedLightAndShadowMapMemoryUsage

Returns the light and shadow map memory for this primite in its out variables.

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/Components/StaticMeshComponent.cpp

Syntax

virtual bool GetEstimatedLightAndShadowMapMemoryUsage
(
    int32 & TextureLightMapMemoryUsage,
    int32 & TextureShadowMapMemoryUsage,
    int32 & VertexLightMapMemoryUsage,
    int32 & VertexShadowMapMemoryUsage,
    int32 & StaticLightingResolution,
    bool & bIsUsingTextureMapping,
    bool & bHasLightmapTexCoords
) const

Remarks

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.

Returns

bool true if the mesh has static lighting; false if not

Parameters

Parameter

Description

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

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