ComputeStaticMeshLOD

Computes the LOD level for the given static meshes render data in the given view.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SceneManagement.h

Include

#include "SceneManagement.h"

Source

/Engine/Source/Runtime/Engine/Private/SceneManagement.cpp

Syntax

int8 ComputeStaticMeshLOD
(
    const FStaticMeshRenderData * RenderData,
    const FVector4 & Origin,
    const float SphereRadius,
    const FSceneView & View,
    int32 MinLOD,
    float FactorScale
)

Remarks

Computes the LOD level for the given static meshes render data in the given view.

Parameters

Parameter

Description

RenderData

Render data for the mesh

Origin

Origin of the bounds of the mesh in world space

SphereRadius

Radius of the sphere to use to calculate screen coverage

View

The view to calculate the LOD level for

FactorScale

multiplied by the computed screen size before computing LOD

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