Navigation
API > API/Runtime > API/Runtime/Engine
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.
| Name | FStaticMeshComponentRecreateRenderStateContext |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/StaticMeshResources.h |
| Include Path | #include "StaticMeshResources.h" |
Syntax
class FStaticMeshComponentRecreateRenderStateContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FStaticMeshComponentRecreateRenderStateContext
(
UStaticMesh* InStaticMesh, |
Initialization constructor. | StaticMeshResources.h | |
FStaticMeshComponentRecreateRenderStateContext
(
const TArray< UStaticMesh* >& InStaticMeshes, |
Initialization constructor. | StaticMeshResources.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FStaticMeshComponentRecreateRenderStateContext() |
Destructor: recreates render state for all components that had their render states destroyed in the constructor. | StaticMeshResources.h |
Structs
| Name | Remarks |
|---|---|
| FData |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bRefreshBounds | bool | StaticMeshResources.h | ||
| bUnbuildLighting | bool | StaticMeshResources.h | ||
| StaticMeshComponents | TMap< void *, FData > | StaticMeshResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TArray< UStaticMeshComponent * > & GetComponentsUsingMesh
(
UStaticMesh* StaticMesh |
Get all static mesh components that are using the provided static mesh. | StaticMeshResources.h |