FStaticMeshRenderData

[FStaticMeshRenderData](API\Runtime\Engine\FStaticMeshRenderData) - All data needed to render a static mesh.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/StaticMeshResources.h

Include

#include "StaticMeshResources.h"

Syntax

class FStaticMeshRenderData

Remarks

FStaticMeshRenderData - All data needed to render a static mesh.

Variables

Name Description

Public variable

bool

 

bLODsShareStaticLighting

True if LODs share static lighting data.

Public variable

FBoxSphereBound...

 

Bounds

Bounds of the renderable mesh.

Public variable

bool

 

bReadyForStreaming

True if rhi resources are initialized

Public variable

uint8

 

CurrentFirstLODIdx

Public variable

FString

 

DerivedDataKey

The derived data key associated with this render data.

Public variable

uint8

 

LODBiasModifier

Public variable

FStaticMeshLODR...

 

LODResources

Per-LOD resources.

Public variable

FStaticMeshVert...

 

LODVertexFactories

Public variable

TArray< int32 >

 

MaterialIndexToImportIndex

Map of material index -> original material index at import time.

Public variable

TUniquePtr< cla...

 

NextCachedRenderData

The next cached derived data in the list.

Public variable

uint8

 

NumInlinedLODs

Public variable

FPerPlatformFlo...

 

ScreenSize

Screen size to switch LODs

Public variable

TArray< FMeshUV...

 

UVChannelDataPerMaterial

UV data used for streaming accuracy debug view modes. In sync for rendering thread

Constructors

Name Description

Public function

FStaticMeshRenderData()

Default constructor.

Destructors

Name Description

Public function

~FStaticMeshRenderData()

Functions

Name Description

Public function

void

 

AllocateLODResources

(
    int32 NumLODs
)

Allocate LOD resources.

Public function

void

 

BuildAreaWeighedSamplingData()

Public function

void

 

Cache

(
    const ITargetPlatform* TargetP...,
    UStaticMesh* Owner,
    const FStaticMeshLODSettings& LODS...
)

Cache derived renderable data for the static mesh with the provided level of detail settings.

Public function

void

 

ComputeUVDensities()

Update LOD-SECTION uv densities.

Public function Const

const FStati...

 

GetCurrentFirstLOD

(
    int32 MinLODIdx
)

Return the current first LOD that can be used for rendering starting at MinLODIdx.

Public function Const

int32

 

GetCurrentFirstLODIdx

(
    int32 MinLODIdx
)

Return the current first LODIdx that can be used.

Public function Const

int32

 

GetFirstValidLODIdx

(
    int32 MinLODIdx
)

Return first valid LOD index starting at MinLODIdx.

Public function Const

int32

 

GetNumNonOptionalLODs()

Count the number of LODs that not optional and guarantied to be installed.

Public function Const

int32

 

GetNumNonStreamingLODs()

Count the number of LODs that are inlined and not streamable.

Public function Const

void

 

GetResourceSizeEx

(
    FResourceSizeEx& CumulativeResourc...
)

Compute the size of this resource.

Public function

void

 

InitResources

(
    ERHIFeatureLevel::Type InFeatureLev...,
    UStaticMesh* Owner
)

Initialize the render resources.

Public function Const

bool

 

IsInitialized()

Public function

void

 

ReleaseResources()

Releases the render resources.

Public function

void

 

ResolveSectionInfo

(
    UStaticMesh* Owner
)

Resolve all per-section settings.

Public function

void

 

Serialize

(
    FArchive& Ar,
    UStaticMesh* Owner,
    bool bCooked
)

Serialization.

Public function

void

 

SyncUVChannelData

(
    const TArray< FStaticMaterial >& O...
)

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