Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent
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 UMaterialInstanceDynamic &42; CreateDynamicMaterialInstance
&40;
int32 ElementIndex,
class UMaterialInterface &42; SourceMaterial,
FName OptionalName
&41;
Remarks
Creates a Dynamic Material Instance for the specified element index, optionally from the supplied material.
Parameters
| Name | Description |
|---|---|
| ElementIndex | The index of the skin to replace the material for. If invalid, the material is unchanged and NULL is returned. |