Description

Add this code to a function you call from a blue utility widget or any other way to start the import with this code.

  1. TArray<UAssetImportTask*> ImportTasks; 
  2. for (int32 i = 0; i < cFC.Files.Num(); i++)
  3. { #   FString& cFile = cFC.Files[i]; #   UAssetImportTask* nTask = NewObject<UAssetImportTask>(); #   nTask->AddToRoot(); #   nTask->Filename = (cFC.SrcPath / cFile); #   nTask->DestinationPath = cFC.DestPath; #   nTask->bAutomated = true; #   nTask->bReplaceExisting = false; //this is being ignored by interchange importer #   nTask->bSave = false; #   #   ImportTasks.Add(nTask); # }
  4.  
  5. AssetTools.ImportAssetTasks(ImportTasks); //this leads to the interchange stuff...

This is a regression from the legacy texture importer

Steps to Reproduce

Import a texture over an existing one with the code provide in the description

The option bReplaceExisting is not supported when using interchange framework.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-193922 in the post.

2
Login to Vote

Fixed
ComponentzComponent - Archive
Affects Versions5.1, 5.2, 5.3
Target Fix5.4
Fix Commit27524695
Main Commit27524703
CreatedAug 25, 2023
ResolvedAug 31, 2023
UpdatedOct 27, 2026
View Jira Issue