Class OnDestroy
Called before the machine is destroyed.
Inheritance
OnDestroy
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Events/Lifecycle")]
[UnitOrder(7)]
public sealed class OnDestroy : MachineEventUnit<EmptyEventArgs>, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventHandler<EmptyEventArgs>
Properties
hookName
Declaration
protected override string hookName { get; }
Property Value
| Type | Description |
|---|---|
| String |
Overrides
Unity.VisualScripting.MachineEventUnit<Unity.VisualScripting.EmptyEventArgs>.hookName
Methods
StopListening(GraphStack, Boolean)
Declaration
protected override void StopListening(GraphStack stack, bool destroyed)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphStack | stack | |
| Boolean | destroyed |
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.StopListening(Unity.VisualScripting.GraphStack, System.Boolean)