I do so: void CreateDynamicMatInstance(UMeshComponent* Mesh, TArray& MatArray);
but it don’t work when I call the function in blueprint.
I do so: void CreateDynamicMatInstance(UMeshComponent* Mesh, TArray& MatArray);
but it don’t work when I call the function in blueprint.
Hi EST000, maybe you need to specify the type for TArray. For example:
void CreateDynamicMatInstance(UMeshComponent* Mesh, TArray<UMaterialInterface*>& MatArray);
In this case your MatAArray parammeter will be a array of UMaterialInterface* elements. YOu can cahnge UMaterialInterface for wherever you want
Best regards