Class WaitForSecondsUnit
Delays flow by waiting a specified number of seconds.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitTitle("Wait For Seconds")]
[UnitShortTitle("Wait")]
[UnitOrder(1)]
public class WaitForSecondsUnit : WaitUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
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
Await(Flow)
Declaration
protected override IEnumerator Await(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
IEnumerator |
Overrides
Definition()
Declaration
protected override void Definition()