Hi,
I’ve created a Custom Asset that gets imported via a file:
UObject* UQuakeMapAssetFactory::FactoryCreateFile(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, const FString& Filename, const TCHAR* Parms, FFeedbackContext* Warn, bool& bOutOperationCanceled)
{
UQuakeMapAsset* newMapObj = NewObject<UQuakeMapAsset>(InParent, InClass, InName, Flags);
newMapObj->SourceQMapFile = Filename;
newMapObj->LoadMapFromFile(Filename);
UEditorLoadingAndSavingUtils::SavePackages({newMapObj->GetPackage()}, false);
return newMapObj;
}
Import, Reimport and Automatic Import when creating a new file works. But when i update an existing file, my factory does not get called. I see the Notification that the reimport gets processed but nothing happens.
Do i miss something here to correctly set the SourceFile of the created Asset?