Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Components > UPrimitiveComponent
- UPrimitiveComponent::SetMaterial()
- UWaterMeshComponent::SetMaterial()
- UMaterialBillboardComponent::SetMaterial()
- UMeshComponent::SetMaterial()
- UWaterMeshComponent::SetMaterial()
- UWidgetComponent::SetMaterial()
- UDestructibleComponent::SetMaterial()
- UAppleARKitFaceMeshComponent::SetMaterial()
- UBaseDynamicMeshComponent::SetMaterial()
- ULidarPointCloudComponent::SetMaterial()
- UImagePlateComponent::SetMaterial()
- UWidgetComponent::SetMaterial()
- UDestructibleComponent::SetMaterial()
- UMRMeshComponent::SetMaterial()
- UVirtualHeightfieldMeshComponent::SetMaterial()
- UTextRenderComponent::SetMaterial()
- UAppleARKitFaceMeshComponent::SetMaterial()
- UBaseDynamicMeshComponent::SetMaterial()
- ULidarPointCloudComponent::SetMaterial()
- ULandscapeComponent::SetMaterial()
- UParticleSystemComponent::SetMaterial()
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 |
virtual void SetMaterial
&40;
int32 ElementIndex,
class 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. |