Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/Components > API/Runtime/GeometryFramework/Components/UBaseDynamicMeshComponent
- UPrimitiveComponent::SetMaterial()
- UMeshComponent::SetMaterial()
- UBaseDynamicMeshComponent::SetMaterial()
References
| Module | GeometryFramework |
| Header | /Engine/Source/Runtime/GeometryFramework/Public/Components/BaseDynamicMeshComponent.h |
| Include | #include "Components/BaseDynamicMeshComponent.h" |
| Source | /Engine/Source/Runtime/GeometryFramework/Private/Components/BaseDynamicMeshComponent.cpp |
virtual void SetMaterial
&40;
int32 ElementIndex,
UMaterialInterface &42; Material
&41;
Remarks
Changes the material applied to an element of the mesh. the material used by the indexed element of this mesh.
Parameters
| Name | Description |
|---|---|
| ElementIndex | The element to access the material of. |