Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Particles > API/Runtime/Engine/Particles/UParticleSystemComponent
- UPrimitiveComponent::SetMaterialByName()
- UParticleSystemComponent::SetMaterialByName()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Particles/ParticleSystemComponent.h |
| Include | #include "Particles/ParticleSystemComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Particles/ParticleComponents.cpp |
virtual void SetMaterialByName
(
FName MaterialSlotName,
class UMaterialInterface * Material
)
Remarks
Changes the material applied to an element of the mesh. the material used by the indexed element of this mesh.
Parameters
| Name | Description |
|---|---|
| MaterialSlotName | The slot name to access the material of. |