Class Throw
Throws an exception.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Control")]
[UnitOrder(16)]
public sealed class Throw : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
custom
Whether a custom exception object should be specified manually.
Declaration
[Serialize]
[Inspectable]
[UnitHeaderInspectable("Custom")]
[InspectorToggleLeft]
public bool custom { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
enter
The entry point to throw the exception.
Declaration
[DoNotSerialize]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
exception
The exception to throw.
Declaration
[DoNotSerialize]
public ValueInput exception { get; }
Property Value
Type | Description |
---|---|
ValueInput |
message
The message of the exception.
Declaration
[DoNotSerialize]
public ValueInput message { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()