4

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.

3

1 Answer 1

3

You can use FPaths::Split to do that:

FPaths::Split(fileName,path,fileNameWithoutExtension,extension); 
Sign up to request clarification or add additional context in comments.

1 Comment

thanks and also I found working with FPaths::GetBaseFilename(filePath);

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.