with out Error Pause enable in console window. Code not execute next line

usually if error came it show in console window and it execute next line. In this case before download asset complete i call asset bundle unload it show error in console next line of code not execute.May i know why?

Generally once “an error” happens, that’s it, everybody out of the pool, nothing else runs beyond that point.

That’s why it is important to fix your errors, or else use try/catch to deal with them safely, if you absolutely must. Caveat: don’t start try/catching unless you really know what you’re doing, or else you will really get yourself into a mess by hiding real errors in your code.

1 Like