Fixed save path

This commit is contained in:
codeffee 2020-11-17 10:23:57 +01:00 committed by bernat
parent 00f5740c89
commit 03b354d291
1 changed files with 1 additions and 4 deletions

View File

@ -71,7 +71,7 @@ void UObjectRegister::RegisterObjects(TArray<AActor*> Actors)
}
FString FilePath = "~/Desktop/RegisteredObjects.txt";
FString FilePath = FPaths::ProjectSavedDir() + "RegisteredObjects.txt";
FFileHelper::SaveStringToFile(
FileContent,
*FilePath,
@ -79,9 +79,6 @@ void UObjectRegister::RegisterObjects(TArray<AActor*> Actors)
&IFileManager::Get(),
EFileWrite::FILEWRITE_Silent);
UE_LOG(LogCarla, Warning, TEXT("Num actors %d"), Actors.Num());
UE_LOG(LogCarla, Warning, TEXT("Num registered objects %d"), EnvironmentObjects.Num());
UE_LOG(LogCarla, Warning, TEXT("Num comps %d"), ObjectIdToComp.Num());
#endif // WITH_EDITOR
}