AssetDatabase.LoadAllAssetAtPath returns empty array when loading a FBX

Hello !

I try to convert an Unity 2018 LTS to Unity 2019 LTS.
I have an issue regarding an AssetPostprocessor function that use “AssetDatabase.LoadAllAssetAtPath” with the FBX path to load it’s content (and find the animations clip).

Works like a charm in 2018.

Problem is : In 2019, AssetDatabase.LoadAllAssetAtPath or AssetDatabase.LoadAllAssetRepresentationAtPath returns an empty array on FBX files. So I can’t get the content of an FBX file (such as their animation clip, to link them directly into an animator for exemple).

I checked the path and this is correct. The asset path is listed when I check the “AssetDatabase.GetAllAssetPaths()” list.

I use the Asset Pipeline v2, I don’t know if it changes somethings.

If someone have an idea of what’s going on or have a workaround to get all AnimationClip from an FBX without using this method, I’m taking everything.

Thanks a lot !

Update : I reverted the project to Asset Pipeline v1, and it works again.

So is this a bug with Asset Pipeline v2 ?

Thanks.