14 TArray<FString> TmpStrList, MapNameList;
15 IFileManager::Get().FindFilesRecursive(
16 MapNameList, *FPaths::ProjectContentDir(), TEXT(
"*.umap"),
true,
false,
false);
17 MapNameList.RemoveAll( [](
const FString &Name) {
return Name.Contains(
"TestMaps");});
18 MapNameList.RemoveAll( [](
const FString &Name) {
return Name.Contains(
"OpenDriveMap");});
19 for (
int i = 0; i < MapNameList.Num(); i++) {
20 MapNameList[i].ParseIntoArray(TmpStrList, TEXT(
"Content/"),
true);
21 MapNameList[i] = TmpStrList[1];
22 MapNameList[i] = MapNameList[i].Replace(TEXT(
".umap"), TEXT(
""));
23 MapNameList[i] =
"/Game/" + MapNameList[i];