How do I generate an AutomatedAssetImportData object

I’m trying to support my Design team using a 3rd party Plugin (Spine).

The designers need to be able to reload the assets for a character in editor. This is triggered automatically if they restart the editor, but I would like to trigger it with a simple button push on the object.

Currently, they can reload the asset by going to the asset in the Content Browser, viewing the details, and selecting Asset->Reimport [asset name]. This works (though there is a bug in Spine that causes the editor to crash, detailed here: [ue4] Hot Reloading with a character in the scene results in a crash · Issue #1246 · EsotericSoftware/spine-runtimes · GitHub ), but it pops up 14 separate confirmation windows.

Some quick research pointed me at the function AutomatedAssetImportData. This function seemed to do what I wanted and import a list of assets. My plan was to use a custom event to call this function from the editor. The problem I have run into is that I cannot figure out how to construct the object this function requires, an AutomatedAssetImportData object. Digging through the code, the initialize function takes in a JSON object, but I can’t find any documentation that tells me what the fields of that JSON object are. I can reverse engineer those fields from the AutomatedAssetImportData code, but that seems ridiculous.

I definitely feel like I’m working too hard to doing something that should be fairly straightforward, and given that I am new to Unreal, I have to assume I’m doing it wrong. Can someone point me in the right direction? How should I be approaching this problem? Is there documentation for the AutomatedAssetImportData I am missing somewhere?