How to get filename without extension in Unreal?

I am using the below code to get the filename and it works great for me. But I name the file WITHOUT extension (.uasset).

const FString fileName = FPaths::GetCleanFilename(filePath);

      

Thanks in advance for your help.

+3


source to share


1 answer


You can use FPaths :: Split for this:



FPaths::Split(fileName,path,fileNameWithoutExtension,extension);

      

+2


source







All Articles