Second Reimport Factory Not Loaded

Working on a custom plugin, that has two different custom assets. The first asset works correctly, but the second asset’s reimportfactory doesn’t get called, instead when reimporting a the second asset type it uses the first reimportfactory, and then crashes.

The only thing I could find is someone saying the registered the handler factory with the reimportmanager, but I’m not sure how I would do this since I don’t know where to get an instance of the handler during startup.

Solved after a couple hours of debugging, for anyone who has a similar issue, maybe this will help. FReimportManager calls the handlers in sequence to see which one can reimport an asset. There’s a way to set a preferred handler to use, but I realised I was missing in CanReimport() to return false if the cast to the asset type failed, after adding it back it, the first handler rejects handling this asset, and it correctly gets passed onwards.