PrimitiveComponent-CreateAndSetMaterialInstanceDynamic(int).md
April 18, 2021 ยท View on GitHub
UnrealEngine.Framework.PrimitiveComponent
PrimitiveComponent.CreateAndSetMaterialInstanceDynamic(int) Method
Creates a dynamic material instance for the specified element index, the parent of the instance is set to the material being replaced
public UnrealEngine.Framework.MaterialInstanceDynamic CreateAndSetMaterialInstanceDynamic(int elementIndex);
Parameters
elementIndex System.Int32
The index of the skin to replace the material for, if invalid, the material is unchanged and null is returned
Returns
MaterialInstanceDynamic
A material instance or null on failure