Hey, I’m exporting an fbx file using Unity FbxExport, but its import settings I want to inherit the settings from the previous file! Let’s say I have an fbx file a in my project, I get it using AssetDatabase.LoadAssetAtPath(path) and I use ExportFbx to import the overlay file a again. You may wonder why I did this, that’s not the point, the point is that I need to map the settings of the previous file A to the file A after I re-imported. I don’t know what to do!
Not sure I understand your issue correctly but it does sound like it could easily be solved with an importer preset.
For instance you can make it so that every fbx imported in a specific folder will get the same import settings applied automatically.
As you know! However, what I did was to overwrite and import the current FBX file again using the Unity FBX Export API, which would break my previous import settings for the fbx file, and I would need to apply the previous import settings of the fbx file to the fbx file after the import was overwritten again
And this is local, which means I only need to do this when I import the overlay fbx file, without interfering with the rest, and you can tell from my code what I’m doing
Translation software sometimes has a hard time expressing what I mean, I re-import an fbx file, but using the fbx export instead of the AssetDatabase related api, and the result of this is that the import device of the fbx file will be restored to the default, and I want to apply the import settings of the fbx file before the import was overwritten to the fbx file after the re-import
Presets will work for this. Make a preset of the existing FBX’s import settings. You can then apply the preset after re-importing the FBX manually, or adapt this script to automatically apply the preset to a folder or file.
Thanks, I’ll give it a try
Thank you so much for the tip, it worked even better than I expected!

