engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FStaticMeshComponentRecreateRenderStateContext类 参考

FStaticMeshComponentRecreateRenderStateContext - Destroys render state for all StaticMeshComponents using a given StaticMesh and recreates them when it goes out of scope. 更多...

#include <StaticMeshResources.h>

Public 成员函数

 FStaticMeshComponentRecreateRenderStateContext (const TArray< UStaticMesh * > &InStaticMeshes, bool InUnbuildLighting=true, bool InRefreshBounds=false)
 Initialization constructor.
 
 FStaticMeshComponentRecreateRenderStateContext (UStaticMesh *InStaticMesh, bool InUnbuildLighting=true, bool InRefreshBounds=false)
 Initialization constructor.
 
const TArray< UStaticMeshComponent * > & GetComponentsUsingMesh (UStaticMesh *StaticMesh) const
 Get all static mesh components that are using the provided static mesh. 更多...
 
 ~FStaticMeshComponentRecreateRenderStateContext ()
 Destructor: recreates render state for all components that had their render states destroyed in the constructor.
 

详细描述

FStaticMeshComponentRecreateRenderStateContext - Destroys render state for all StaticMeshComponents using a given StaticMesh and recreates them when it goes out of scope.

Used to ensure stale rendering data isn't kept around in the components when importing over or rebuilding an existing static mesh.

成员函数说明

◆ GetComponentsUsingMesh()

const TArray< UStaticMeshComponent * > & FStaticMeshComponentRecreateRenderStateContext::GetComponentsUsingMesh ( UStaticMesh *  StaticMesh) const
inline

Get all static mesh components that are using the provided static mesh.

参数
StaticMeshThe static mesh from which you want to obtain a list of components.
返回
An reference to an array of static mesh components that are using this mesh.
注解
Will only work using the static meshes provided at construction.

该类的文档由以下文件生成: