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

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

Name Description

Public function

FStaticMeshComponentRecreateRenderStateContext

(
    UStaticMesh* InStaticMesh,
    bool InUnbuildLighting,
    bool InRefreshBounds
)

Initialization constructor.

Public function

FStaticMeshComponentRecreateRenderStateContext

(
    const TArray< UStaticMesh* >&...,
    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.

Functions

Name Description

Public function Const

const TArray...

 

GetComponentsUsingMesh

(
    UStaticMesh* StaticMesh
)

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss