Announcement

Collapse
No announcement yet.

[SOLVED] SourceImportFilename returns Nothing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [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:
    Code:
    FString sourceFilePath = StaticMeshComp->GetStaticMesh()->GetSourceModel(0).SourceImportFilename;
    It returns nothing at all

    Is there something im doing wrong with this ?

    Thank a million!

    #2
    I Found what i was looking for by using:

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

    Comment

    Working...
    X