Class OnTimerElapsed
Called when a specified number of seconds has elapsed.
Inheritance
OnTimerElapsed
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitCategory("Events/Time")]
[Obsolete("Use Wait For Seconds or Timer instead.")]
public sealed class OnTimerElapsed : 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
seconds
The number of seconds to await.
Declaration
[DoNotSerialize]
[PortLabel("Delay")]
public ValueInput seconds { get; }
Property Value
Type | Description |
---|---|
ValueInput |
unscaledTime
Whether to ignore the time scale.
Declaration
[DoNotSerialize]
[PortLabel("Unscaled")]
public ValueInput unscaledTime { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
CreateData()
Declaration
public override IGraphElementData CreateData()
Returns
Type | Description |
---|---|
IGraphElementData |
Overrides
Definition()
Declaration
protected override void Definition()
Overrides
ShouldTrigger(Flow, EmptyEventArgs)
Declaration
protected override bool ShouldTrigger(Flow flow, EmptyEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
EmptyEventArgs | args |
Returns
Type | Description |
---|---|
bool |
Overrides
StartListening(GraphStack)
Declaration
public override void StartListening(GraphStack stack)
Parameters
Type | Name | Description |
---|---|---|
GraphStack | stack |