Download

Editor Plugin - Copy Materials from a to b

I am having a hard time to find the right way to do this… Maybe you can give me some hints or guidiance ?

What the Plugin should do:

get all materials from FolderA and Move them to FolderB
the existing Materials should be replaced
also the Texture used by the materials have to be moved to a new Folder

Thanks !

???

#include “Engine\Texture2D.h”
UTexture2D move(UTexture2D indata)
{
//copy file??
FILE *read;
_wfopen_s(&read,L"",L"rb+");
//…do more
FILE *write;
_wfopen_s(&write,L"",L"rb+");
//…do more

return indata;   // copy textur?

}

i am confused about your answer…

actually i wnat to do the same as the Drag&Drop, Move the Materials and also redirect the references