Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Filename without extension in Unreal?

I've been using the below code to get the filename and it's works fine for me. But I the file name WITHOUT extension(.uasset).

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

Thanks in advance for your help.

like image 986
manokar Avatar asked Oct 24 '25 04:10

manokar


1 Answers

You can use FPaths::Split to do that:

FPaths::Split(fileName,path,fileNameWithoutExtension,extension);
like image 116
463035818_is_not_a_number Avatar answered Oct 26 '25 17:10

463035818_is_not_a_number