Class OnTimerElapsed
Called when a specified number of seconds has elapsed.
Inheritance
OnTimerElapsed
Inherited Members
Namespace: Unity.VisualScripting
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, IGraphEventHandler<EmptyEventArgs>
Properties
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Unity.VisualScripting.MachineEventUnit<Unity.VisualScripting.EmptyEventArgs>.hookName
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
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.CreateData()
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.Definition()
ShouldTrigger(Flow, EmptyEventArgs)
Declaration
protected override bool ShouldTrigger(Flow flow, EmptyEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
EmptyEventArgs | args |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.ShouldTrigger(Unity.VisualScripting.Flow, Unity.VisualScripting.EmptyEventArgs)
StartListening(GraphStack)
Declaration
public override void StartListening(GraphStack stack)
Parameters
Type | Name | Description |
---|---|---|
GraphStack | stack |
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.StartListening(Unity.VisualScripting.GraphStack)