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.


source to share

1 answer

You can use FPaths :: Split for this:





All Articles