[SOLVED]Question: Quick question regarding returning source file path

Hey!
I’ve been doing a bit of testing with some things for source files (Static Mesh Specifically).

I have been trying to get the path of the source file that is inside of the Asset Itself (See Image Below This)
UE_Question_FilePath.png

So i Started to search and found this


 FString sourceFilePath = StaticMeshComp->GetStaticMesh()->GetSourceModel(0).SourceImportFilename;


The main issue is that its actually returning blank and nothing at all.

Am i using the correctly? or is there a different way to get the Source File Path of the Static Mesh in c++

Thank you!

I found another way which has returned the path that i required with:


 FString sourceFilePath = StaticMeshComp->GetStaticMesh()->AssetImportData->GetFirstFilename();


Not sure how/where to paste this code?

Is there a way to retrieve this file path without using C++?