10 #include "Runtime/Core/Public/HAL/FileManagerGeneric.h" 14 TArray<FString> TmpStrList, MapNameList;
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];
static TArray< FString > GetAllMapNames()
static T Get(carla::rpc::Response< T > &response)