Module |
|
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 * CreateAndSetMaterialInstanceDynamic
(
int32 ElementIndex
)
Creates a Dynamic Material Instance for the specified element index. The parent of the instance is set to the material being replaced.
Parameter |
Description |
---|---|
ElementIndex |
The index of the skin to replace the material for. If invalid, the material is unchanged and NULL is returned. |