Method script.end(+ 2 overloads)
Overload
Ends this process.
public static void end()
Remarks
Calls System.Environment.Exit.
It executes process exit event handlers. Does not execute finally code blocks. Does not execute GC.
Overload(next)
Ends another script process.
public static bool? end(int processId)
Parameters
|
processId (int)
Script process id, for example returned by script.run. |
Returns
|
bool?
|
Exceptions
|
ArgumentException
processId is 0 or id of this process. |
Remarks
The script process can be started from editor or not.
The process executes process exit event handlers. Does not execute finally code blocks and GC.
Returns null if processId is invalid (probably because the script is already ended). Returns false if processId is valid but not of a script process (probably the script ended long time ago and the id is reused for another process).
Overload(top)
Ends all task processes of a script.
public static bool? end(string name)
Parameters
|
name (string)
Script file name (like |
Returns
|
bool?
|
Exceptions
|
AuException
Editor process not found. |
Remarks
Can end only script processes started from the editor.
The process executes process exit event handlers. Does not execute finally code blocks and GC.