I am write the code of his custom build pipeline, one of the operations that is performed at the very beginning of the start of the pipeline is to set the appropriate script define symbols.
The reloading of scripts and their compilation in the unity editor captures with the attribute DidReloadScripts, unfortunately this attribute does not work on batch mode.
I need to wait for the reloading of scripts after changing script define because the code pipeline then contains the execution of some operations whose code is hidden in the compiler directive.
I haven’t specifically used DidReloadScripts but reloading scripts and continuing afterwards does work in batch mode.
Do you maybe have -quit set in your command line arguments to Unity? This will make the editor quit as soon as it’s idle, which is the case before script recompilation, so any code waiting for that will never run. You need to remove -quit and manually call EditorApplication.Exit when you’re done.
Ok remowe -quit argumnet resolve problem. Thanks ![]()