I need to be able to cook assets through the command line. The problem is that I’ll need to modify the source of the assets (e.g. fbx files), and before cooking I need to re-import them for the changes to take effect.
I need this process to be automated so I can’t open the editor and re-import them myself.
Have you read the documentation on Content Cooking? If I understand you correctly, you are trying to do what is described here: Patching. -only through the command line, which you may be able piece together between the those articles but we do not officially support this.
I’ve already read them both, but I can’t find a solution. The problem is that I need to automate this process. It should go like this: the project has a shared folder that is monitored for content changes (configured in the Editor Preferences). Someone from the art team makes changes to an fbx and texture, in the shared folder. I need unreal to automatically detect those changes when I run the “run=cook” command (so they are re-imported). The assets are always going to be the same, so I can specify them manually in the command. The part that is missing is the auto-reimport, because I need this process to be automated and the auto-reimport feature only works when I open the Editor in a window.
This functionality is not currently supported in the engine but is being considered. As it stands you must open the editor in order to convert the fbx files to uasset files.