Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UStaticMeshComponent
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UMaterialInterface * GetMaterial
(
int32 ElementIndex |
Returns the material used by the element at the specified index | Components/StaticMeshComponent.h | |
UMaterialInterface * GetMaterial
(
int32 MaterialIndex, |
Components/StaticMeshComponent.h |
GetMaterial(int32)
Description
Returns the material used by the element at the specified index
| Name | GetMaterial |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/StaticMeshComponent.h |
| Include Path | #include "Components/StaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/StaticMeshComponent.cpp |
virtual UMaterialInterface * GetMaterial
(
int32 ElementIndex
) const
the material used by the indexed element of this mesh.
Parameters
| Name | Remarks |
|---|---|
| ElementIndex | The element to access the material of. |
GetMaterial(int32, bool)
| Name | GetMaterial |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/StaticMeshComponent.h |
| Include Path | #include "Components/StaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/StaticMeshComponent.cpp |
UMaterialInterface * GetMaterial
(
int32 MaterialIndex,
bool bDoingNaniteMaterialAudit
) const