Error: TypeError: descriptor 'import_assets_with_dialog' requires a 'AssetTools' object but received a 'str'
From the UE Python documentation for AssetTools:
So I’m confused… The documentation seems to clearly state that destination_path needs to be a string. So why is Unreal complaining that it should be an AssetTools object?
import_assets_with_dialog is a method, so you need to call it on an instance rather than the type. The error is trying to say that the ‘self’ argument was the wrong type.
Great, that worked. It seems that I need to get better at understanding Python error messages. The fact that the error complained about an object and not a parameter was probably a good hint that the part that was wrong wasn’t the bit inside the brackets.