FStaticMeshComponentRecreateRenderStateContext::GetComponentsUsingMesh

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/StaticMeshResources.h

Include

#include "StaticMeshResources.h"

Source

/Engine/Source/Runtime/Engine/Private/StaticMeshResources.cpp

Syntax

const TArray< UStaticMeshComponent * > & GetComponentsUsingMesh
(
    UStaticMesh * StaticMesh
) const

Remarks

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

Returns

An reference to an array of static mesh components that are using this mesh. @note Will only work using the static meshes provided at construction.

Parameters

Parameter

Description

StaticMesh

The static mesh from which you want to obtain a list of components.