Migrating from 4.10 -> 4.12 Factory.CurrentFilename

Hi there,

I am tasked with updating our current pipeline plugins from Unreal 4.10 to Unreal 4.12 and running into lots of issues, but this is the one that has me the most stumped.

We have custom asset import routines, and during that process while importing various assets we create a factory object and fill in its Currentfilename. However that property appears to have been moved to no longer be accessible, and I don’t see any new method or property added to allow setting it.

Here is an example:

auto TextureFact = NewObject<UTextureFactory()>;
TextureFact->CurrentFilename = MPCLinkUtil::MakeWindowsPath(importedData[0].path);

Can anyone help me determine how to migrate this section of code, given we can no longer access that property and I don’t see any SetCurrentFilename method (though a GetCurrentFilename method appears to have been added).

Answerhub. The place questions go to die :frowning: