Search Unity

Halting Build Process

Discussion in 'Scripting' started by GoatHunter, Jan 19, 2014.

  1. GoatHunter

    GoatHunter

    Joined:
    Jan 12, 2014
    Posts:
    1
    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.
     
    Last edited: Jan 19, 2014
  2. jorgecid

    jorgecid

    Joined:
    Jul 31, 2012
    Posts:
    3