Navigation
Unreal Engine C++ API Reference > Runtime > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/StaticMeshResources.h |
Include | #include "StaticMeshResources.h" |
Syntax
class FStaticMeshComponentRecreateRenderStateContext
Remarks
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.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FStaticMeshComponentRecreateRenderStateContext
(
UStaticMesh* InStaticMesh, |
Initialization constructor. | |
![]() |
FStaticMeshComponentRecreateRenderStateContext
(
const TArray< UStaticMesh* >& InStaticMeshes, |
Initialization constructor. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructor: recreates render state for all components that had their render states destroyed in the constructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const TArray< UStaticMeshComponent * > & | GetComponentsUsingMesh
(
UStaticMesh* StaticMesh |
Get all static mesh components that are using the provided static mesh. |