Navigation
API > API/Plugins > API/Plugins/VirtualHeightfieldMesh > API/Plugins/VirtualHeightfieldMesh/UVirtualHeightfieldMeshComponent
- UPrimitiveComponent::SetMaterial()
- UVirtualHeightfieldMeshComponent::SetMaterial()
References
| Module | VirtualHeightfieldMesh |
| Header | /Engine/Plugins/Experimental/VirtualHeightfieldMesh/Source/VirtualHeightfieldMesh/Public/VirtualHeightfieldMeshComponent.h |
| Include | #include "VirtualHeightfieldMeshComponent.h" |
| Source | /Engine/Plugins/Experimental/VirtualHeightfieldMesh/Source/VirtualHeightfieldMesh/Private/VirtualHeightfieldMeshComponent.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. |