Is there any way to halt a build process through a script? e.g I'm doing some validations in certain assets and would like to cancel the ongoing build and warn the user about it. I tried throwing an Exception in method with a [PostProcessBuild] attribute, but that didn't work. Thanks.
I am trying to do the same with: https://docs.unity3d.com/ScriptReference/Build.IPreprocessBuild.OnPreprocessBuild.html Did you find a way?