我一直在使用下面的代码来获取文件名,它对我来说工作正常。但我的文件名没有扩展名(.uasset)。
const FString fileName = FPaths::GetCleanFilename(filePath);
预先感谢您的帮助。
最佳答案
您可以使用 FPaths::Split 来做到这一点:
FPaths::Split(fileName,path,fileNameWithoutExtension,extension);
关于c++ - 如何在虚幻引擎中获取没有扩展名的文件名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29800808/