The setup:
A plugin made up of two parts, one runtime, one editor.
The runtime part contains amongst other things a class inherting from USoundWave.
This new asset type is imported using a custom import factory.
To handle reimport we added a custom reimport factory, it’s constructor is being run, but nothing else. Interestingly enough it worked earlier. Current engine version: 4.10.4.
I have put breakpoints in all the functions, only the constructor is being called.
The editor is getting a log message about reimporting an asset that is modified on disk. And it’s showing the popup about reimporting a source asset.
I can supply the code used if necessary. (Preferably non-publicly).
Thanks for any help!
Hello ,
I can’t quite tell if this is a problem in the plugin or with the engine itself but I would need to see the plugin itself to determine that. If you wish to send it privately, it would be best to send a download link to me via a private message in our forums. This is a link to my profile so that you can do so:
Hello ,
I sent a pm with a project where I can reproduce it.
Thanks for the help!
I’m just leaving a comment here for tracking purposes as we are continuing to speak about this in private messages on the forums, as it involves your project’s content / software.
For others having this problem I have a partial update:
virtual bool IsImportedAsset() const override
{
return true;
}
Is required in the AssetActions it seems. Even with this I’m only getting calls to my reimport factory IF I first reimport it via the Assets context menu.
Hello ,
I’m still looking into this issue and wanted to let you know that the report hasn’t been forgotten. I’ll be sure to update you here if I need more information or have any more updates on the progress of this issue.
You mentioned that another individual who was helping you proposed that the path data for the import was being lost and that was causing you to need to manually reimport to repopulate that. Are you or that other person aware of exactly how/when the path data is lost? It would be helpful information to know.
Hello ,
I apologize for the delay. While I’m still not 100% sure if this is an issue with the engine itself or with the plugin’s code, I’ve placed a bug report in so that some people more well-versed in this subject can take a look at the problem. For reference, the bug report number is UE-29896. I’ll be sure to let you know if there are any updates to the report or if we need any more information from you on the subject.
Have a nice day!