Navigation
API > API/Plugins > API/Plugins/Water > API/Plugins/Water/UWaterMeshComponent
- UPrimitiveComponent::SetMaterial()
- UMeshComponent::SetMaterial()
- UWaterMeshComponent::SetMaterial()
References
| Module | Water |
| Header | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterMeshComponent.h |
| Include | #include "WaterMeshComponent.h" |
| Source | /Engine/Plugins/Experimental/Water/Source/Runtime/Private/WaterMeshComponent.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. |