bool GetDirectoryFileList(TArray<FString>& outFileList, const FString& inPath)
{
// 절대 경로
FString absolutePath = FPaths::ConvertRelativePathToFull(inPath);
// 대상 디렉터리가 존재하는지 체크
IPlatformFile& platformFile = FPlatformFileManager::Get().GetPlatformFile();
if (false == platformFile.DirectoryExists(*absolutePath)) {
return false;
}
// 절대 경로로 파일리스트가 설정됨
platformFile.FindFiles(outFileList, *absolutePath, nullptr);
return true;
}
'Unreal > 기본' 카테고리의 다른 글
[Unreal] DataTable을 코드에서 수정하고 저장 (1) | 2025.01.05 |
---|---|
[Unreal] 상대/절대 경로를 /Game/ 기반의 경로로 변경 (0) | 2025.01.05 |
[Unreal] SoundCue에 설정된 SoundWave 리스트 얻기 (0) | 2024.11.30 |
[Unreal] 사운드 웨이브 파일을 .wav로 export (0) | 2024.11.30 |
[Unreal] SoundCue 출력 (0) | 2024.11.30 |