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.
|
inline |
Get all static mesh components that are using the provided static mesh.
| StaticMesh | The static mesh from which you want to obtain a list of components. |