Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent
- UPrimitiveComponent::GetMaterial()
- UMaterialBillboardComponent::GetMaterial()
- UMeshComponent::GetMaterial()
- USkinnedMeshComponent::GetMaterial()
- UStaticMeshComponent::GetMaterial()
- UModelComponent::GetMaterial()
- UParticleSystemComponent::GetMaterial()
- USkinnedMeshComponent::GetMaterial()
- UStaticMeshComponent::GetMaterial()
- UTextRenderComponent::GetMaterial()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
Include | #include "Components/PrimitiveComponent.h" |
Source | /Engine/Source/Runtime/Engine/Private/Components/PrimitiveComponent.cpp |
UFUNCTION (BlueprintPure, Category="Rendering|Material")
virtual UMaterialInterface * GetMaterial
(
int32 ElementIndex
) const
Remarks
Returns the material used by the element at the specified index the material used by the indexed element of this mesh.
Parameters
Name | Description |
---|---|
ElementIndex | The element to access the material of. |