Navigation
API > API/Runtime > API/Runtime/Engine
FStaticMeshRenderData - All data needed to render a static mesh.
| Name | FStaticMeshRenderData |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/StaticMeshResources.h |
| Include Path | #include "StaticMeshResources.h" |
Syntax
class FStaticMeshRenderData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FStaticMeshRenderData() |
Default constructor. | StaticMeshResources.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FStaticMeshRenderData() |
StaticMeshResources.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bForceGenerateNaniteFallbackMesh | bool | Derived from NaniteSettings to be used in HasNaniteFallbackMesh(...) in builds with editor-only data. | StaticMeshResources.h | |
| bHasNaniteFallbackMesh | bool | StaticMeshResources.h | ||
| bLODsShareStaticLighting | bool | True if LODs share static lighting data. | StaticMeshResources.h | |
| Bounds | FBoxSphereBounds | Bounds of the renderable mesh. | StaticMeshResources.h | |
| bReadyForStreaming | bool | True if rhi resources are initialized | StaticMeshResources.h | |
| CollisionDataForCookedCooker | TUniquePtr< FTriMeshCollisionData > | Canned FTriMeshCollisionData for static meshes cooked for CookedCooker platform (see TCookedCookerTargetPlatform). | StaticMeshResources.h | |
| CurrentFirstLODIdx | uint8 | StaticMeshResources.h | ||
| DerivedDataKey | FString | The derived data key associated with this render data. | StaticMeshResources.h | |
| EstimatedCompressedSize | uint64 | Estimate of total compressed size of all rendering data, including Nanite data. | StaticMeshResources.h | |
| EstimatedNaniteStreamingCompressedSize | uint64 | Estimate of compressed size of Nanite streaming data. | StaticMeshResources.h | |
| EstimatedNaniteTotalCompressedSize | uint64 | Estimate of total compressed size of Nanite data. Includes streaming and non-streaming data. | StaticMeshResources.h | |
| LODBiasModifier | uint8 | StaticMeshResources.h | ||
| LODResources | FStaticMeshLODResourcesArray | Per-LOD resources. | StaticMeshResources.h | |
| LODVertexFactories | FStaticMeshVertexFactoriesArray | StaticMeshResources.h | ||
| MaterialIndexToImportIndex | TArray< int32 > | Map of material index -> original material index at import time. | StaticMeshResources.h | |
| NaniteResourcesPtr | TPimplPtr< Nanite::FResources > | StaticMeshResources.h | ||
| NextCachedRenderData | TUniquePtr< class FStaticMeshRenderData > | The next cached derived data in the list. | StaticMeshResources.h | |
| NumCacheAttempts | int32 | The number of times Cache has been called. Used to log errors when we are calling it repeatedly. | StaticMeshResources.h | |
| NumInlinedLODs | uint8 | StaticMeshResources.h | ||
| RayTracingProxy | FStaticMeshRayTracingProxy * | Ray tracing representation of this mesh, null if not present. | StaticMeshResources.h | |
| ScreenSize | FPerPlatformFloat | Screen size to switch LODs | StaticMeshResources.h | |
| SupportedPlatforms | TSet< const ITargetPlatform * > | The platform(s) that are using using this RenderData. | StaticMeshResources.h | |
| UVChannelDataPerMaterial | TArray< FMeshUVChannelInfo > | UV data used for streaming accuracy debug view modes. In sync for rendering thread | StaticMeshResources.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsInitialized | bool | StaticMeshResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AllocateLODResources
(
int32 NumLODs |
Allocate LOD resources. | StaticMeshResources.h | |
void BuildAreaWeighedSamplingData() |
StaticMeshResources.h | ||
void Cache
(
const ITargetPlatform* TargetPlatform, |
Cache derived renderable data for the static mesh with the provided level of detail settings. | StaticMeshResources.h | |
void ComputeUVDensities
(
UStaticMesh* Mesh |
Update LOD-SECTION uv densities. | StaticMeshResources.h | |
void CopyCacheRetryData
(
FStaticMeshRenderData& Other |
Copies data from an earlier FStaticMeshRenderData for the same platform which should persist across retries; the persistent data is used to track repeated failures and error exit. | StaticMeshResources.h | |
SIZE_T GetCPUAccessMemoryOverhead() |
Get the estimated memory overhead of buffers marked as NeedsCPUAccess. | StaticMeshResources.h | |
const FStaticMeshLODResources * GetCurrentFirstLOD
(
int32 MinLODIdx |
Return the current first LOD that can be used for rendering starting at MinLODIdx. | StaticMeshResources.h | |
int32 GetCurrentFirstLODIdx
(
int32 MinLODIdx |
Return the current first LODIdx that can be used. | StaticMeshResources.h | |
int32 GetFirstValidLODIdx
(
int32 MinLODIdx |
Return first valid LOD index starting at MinLODIdx. | StaticMeshResources.h | |
int32 GetNumNonOptionalLODs () |
Count the number of LODs that not optional and guarantied to be installed. | StaticMeshResources.h | |
int32 GetNumNonStreamingLODs () |
Count the number of LODs that are inlined and not streamable. | StaticMeshResources.h | |
void GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Compute the size of this resource. | StaticMeshResources.h | |
bool HasNaniteFallbackMesh
(
EShaderPlatform ShaderPlatform |
StaticMeshResources.h | ||
bool HasValidNaniteData() |
StaticMeshResources.h | ||
void InitializeRayTracingRepresentationFromRenderingLODs() |
StaticMeshResources.h | ||
void InitResources
(
ERHIFeatureLevel::Type InFeatureLevel, |
Initialize the render resources. | StaticMeshResources.h | |
bool IsInitialized() |
StaticMeshResources.h | ||
void ReleaseResources() |
Releases the render resources. | StaticMeshResources.h | |
void ResolveSectionInfo
(
UStaticMesh* Owner |
Resolve all per-section settings. | StaticMeshResources.h | |
void Serialize
(
FArchive& Ar, |
Serialization. | StaticMeshResources.h | |
void SerializeInlineDataRepresentations
(
FArchive& Ar, |
Serialize mesh build data which is inlined. | StaticMeshResources.h | |
void SyncUVChannelData
(
const TArray< FStaticMaterial >& ObjectData |
StaticMeshResources.h |