FStaticMeshComponentRecreateRenderStateContext

[FStaticMeshComponentRecreateRenderStateContext](API\Runtime\Engine\FStaticMeshComponentRecreateRend-) - Destroys render state for all StaticMeshComponents using a given StaticMesh and recreates them when it goes out of scope.

Windows
MacOS
Linux

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

Name Description

Public function

FStaticMeshComponentRecreateRenderStateContext

(
    UStaticMesh* InStaticMesh,
    bool InUnbuildLighting,
    bool InRefreshBounds
)

Initialization constructor.

Destructors

Name Description

Public function

~FStaticMeshComponentRecreateRenderStateContext()

Destructor: recreates render state for all components that had their render states destroyed in the constructor.

References

Module

Engine

Header

Runtime/Engine/Public/StaticMeshResources.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback