Skip to content

Animation.Timer

Name - Description Default Type
<input> The input of this shard is ignored.
<output> Outputs the current time of the animation timer Float
Animation The Animation object to take the duration from. none Var([{Path: [String] Frames: [{Time: Float Value: Any none: Any}]}])[{Path: [String] Frames: [{Time: Float Value: Any none: Any}]}]
Duration The duration of the timer, the timer will loop or stop after reaching this value. none FloatVar(Float)
Looped If set to true, the timer will loop after reaching the target time true BoolVar(Bool)
Rate The playback rate 1 FloatVar(Float)
Offset Timer offset none FloatVar(Float)
Action The shards to execute whenever the shard reached the specified duration. none Shard[Shard]
Variable The variable to store the current time of the timer in. none Var(Float)

This shard sets a duration (either taken form the animation object in the Animation Parameter or specified in the Duration parameter) and executes the shards specified in the Action parameter whenever that duration is reached.