Script Handle
Last updated
Last updated
A running script in Sansar.
This is a lightweight handle which is used by some API methods to refer to a script.
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
See Also: Inherited members from .
Run by the script scheduler when the invocation of a script event handler or coroutine throws an exception.
Internal use only
Syntax
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
The Sansar Script's unique ID. This ID is unique among all scripts currently running in a scene. It will change every time the script or scene is started.
SyntaxValue
RemarksInternal.
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Run by the script scheduler when the invocation of a script event handler or coroutine throws an exception.
Syntax
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
SyntaxValue
Boolean indicating if the script may continue running after an unhandled exception occurs.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
public Dispose ()
Returns if the ScriptHandle is not initialized with a valid script.
If is true then the script may continue running if the handler does not throw an exception. If the handler needs to stop execution of the script it should throw the passed exception. The first argument is either the that was being processed, or the Coroutine that was running when the exception occurred.
public UnhandledExceptionRecoverable { get; }
If this is true and the event is set and does not throw and exception the script will continue to be scheduled.