[SOLVED] SourceImportFilename returns Nothing

Hello
I would like to get the source file path of the static mesh but its only returning blank.

Does anyone know why when I do the following:


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

It returns nothing at all

Is there something im doing wrong with this ?

Thank a million!

I Found what i was looking for by using:


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