UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FStaticMeshComponentHelper Class Reference

#include <StaticMeshComponentHelper.h>

Public Types

enum class  ESceneProxyCreationError { None , WaitingPSOs , MeshCompiling , InvalidMesh }
 

Static Public Member Functions

template<class T >
static void GetUsedRayTracingOnlyMaterials (const T &Component, TArray< UMaterialInterface * > &OutMaterials)
 
template<class T >
static UMaterialInterfaceGetMaterial (const T &Component, int32 MaterialIndex, bool bDoingNaniteMaterialAudit=false, bool bIgnoreNaniteOverrideMaterials=false)
 
template<class T >
static void GetUsedMaterials (const T &Component, TArray< UMaterialInterface * > &OutMaterials, bool bGetDebugMaterials)
 
template<class T >
static void CollectPSOPrecacheDataImpl (const T &Component, const FVertexFactoryType *VFType, const FPSOPrecacheParams &BasePrecachePSOParams, GetPSOVertexElementsFn GetVertexElements, FMaterialInterfacePSOPrecacheParamsList &OutParams)
 
template<class T >
static void CollectPSOPrecacheData (const T &Component, const FPSOPrecacheParams &BasePrecachePSOParams, FMaterialInterfacePSOPrecacheParamsList &OutParams)
 
template<class T >
static bool IsNavigationRelevant (const T &Component)
 
template<class T >
static FBox GetNavigationBounds (const T &Component)
 
template<class T >
static void GetNavigationData (const T &Component, FNavigationRelevantData &Data)
 
template<class T >
static bool DoCustomNavigableGeometryExport (const T &Component, FNavigableGeometryExport &GeomExport)
 
template<class T , bool bAssumeRenderDataIsReady = false>
static FPrimitiveSceneProxyCreateSceneProxy (T &Component, FStaticMeshComponentHelper::ESceneProxyCreationError *OutError=nullptr)
 

Detailed Description

Helper class used to share implementation for different StaticMeshComponent types

Member Enumeration Documentation

◆ ESceneProxyCreationError

Enumerator
None 
WaitingPSOs 
MeshCompiling 
InvalidMesh 

Member Function Documentation

◆ CollectPSOPrecacheData()

template<class T >
void FStaticMeshComponentHelper::CollectPSOPrecacheData ( const T &  Component,
const FPSOPrecacheParams BasePrecachePSOParams,
FMaterialInterfacePSOPrecacheParamsList OutParams 
)
static

◆ CollectPSOPrecacheDataImpl()

template<class T >
void FStaticMeshComponentHelper::CollectPSOPrecacheDataImpl ( const T &  Component,
const FVertexFactoryType VFType,
const FPSOPrecacheParams BasePrecachePSOParams,
FStaticMeshComponentHelper::GetPSOVertexElementsFn  GetVertexElements,
FMaterialInterfacePSOPrecacheParamsList OutParams 
)
static

◆ CreateSceneProxy()

template<class T , bool bAssumeRenderDataIsReady>
FPrimitiveSceneProxy * FStaticMeshComponentHelper::CreateSceneProxy ( T &  Component,
FStaticMeshComponentHelper::ESceneProxyCreationError OutError = nullptr 
)
static

◆ DoCustomNavigableGeometryExport()

template<class T >
bool FStaticMeshComponentHelper::DoCustomNavigableGeometryExport ( const T &  Component,
FNavigableGeometryExport GeomExport 
)
static

◆ GetMaterial()

template<class T >
UMaterialInterface * FStaticMeshComponentHelper::GetMaterial ( const T &  Component,
int32  MaterialIndex,
bool  bDoingNaniteMaterialAudit = false,
bool  bIgnoreNaniteOverrideMaterials = false 
)
static

◆ GetNavigationBounds()

template<class T >
FBox FStaticMeshComponentHelper::GetNavigationBounds ( const T &  Component)
static

◆ GetNavigationData()

template<class T >
void FStaticMeshComponentHelper::GetNavigationData ( const T &  Component,
FNavigationRelevantData Data 
)
static

◆ GetUsedMaterials()

template<class T >
void FStaticMeshComponentHelper::GetUsedMaterials ( const T &  Component,
TArray< UMaterialInterface * > &  OutMaterials,
bool  bGetDebugMaterials 
)
static

◆ GetUsedRayTracingOnlyMaterials()

template<typename T >
void FStaticMeshComponentHelper::GetUsedRayTracingOnlyMaterials ( const T &  Component,
TArray< UMaterialInterface * > &  OutMaterials 
)
static

◆ IsNavigationRelevant()

template<class T >
bool FStaticMeshComponentHelper::IsNavigationRelevant ( const T &  Component)
static

The documentation for this class was generated from the following file: