I’m trying to write a script to automatically import, organize, and rename assets, then export an Asset Bundle, in the Unity Editor from the command line in Windows. But when I run it, the commandline immediately returns while Unity is loading, running my script, etc. There’s no way to know the status, when it is finished, if there were any errors, there’s no feedback at all, no way to know if it is even doing anything. How do I stop the commandline from immediately returning, and write messages to the console? Apparently you used to be able to do -logFile with no arguments to redirect all logging to the console, that doesn’t work anymore (which makes sense since the console returns from Unity immediately).
Here’s my current commandline:
\path_to_unity\unity.exe -batchmode -executeMethod ImportAndCreateAssetBundle.Import -quit -logFile
Is it possible to do it without batchmode, so that Unity still pops up something the user can see and I can control, but without asking which project to load and all that, and still quit when it is done? This isn’t as ideal but it’s a lot better than no feedback at all.