Behavior : Duration

Author:Rex.Rainbow

Download

Properties

Sync timescale

  • Sync to object's timescale.
    • Options : ["No","Yes"]

Actions

Control

Action:Start

  • Start duration.
    • Name ( number or string ) : Duration name. Could be a string or a number.
    • Duration ( number ) : Persist duration time
    • Interval ( number ) : Interval time

Action:Pause

  • Pause duration.
    • Name ( number or string ) : Duration name. Could be a string or a number.

Action:Resume

  • Resume duration.
    • Name ( number or string ) : Duration name. Could be a string or a number.

Action:Force to end

  • Force duration to end. "Condition:On end" will be triggered if "Condition:On start" had been triggered before.
    • Name ( number or string ) : Duration name. Could be a string or a number.

Action:Cancel

  • Cancel duration.
    • Name ( number or string ) : Duration name. Could be a string or a number.

Control: All

Action:Pause all

  • Pause all durations.

Action:Resume all

  • Resume all durations.

Action:Force to end all

  • Force all durations to end. "Condition:On end" will be triggered if "Condition:On start" had been triggered before.

Setup

Action:Setup

  • Setup.
    • Timeline ( object ) : Timeline object to get timer

Sync

Action:Sync timescale

  • Synchronize to object's timescale.
    • Type ( Combo ) : Type.
      • Options : ["No","Yes"]

Time

Action:Add duration time

  • Add(extend) duration time.
    • Duration ( number or string ) : Duration name. Could be a string or a number.
    • Duration ( number ) : Duration time

Action:Set interval time

  • Set interval time.
    • Duration ( number or string ) : Duration name. Could be a string or a number.
    • Interval ( number ) : Interval time

Expressions

Duration

Expression:Remainder

  • Get remainder duration. Add second parameter to specify duration.

Expression:Elapsed

  • Get elapsed time of duration. Add second parameter to specify duration.

Expression:Interval

  • Get interval time. Add second parameter to specify duration.

Expression:Duration

  • Get duration time. Add second parameter to specify duration.

Percentage

Expression:RemainderPercent

  • Get remainder time percentage of duration. Add second parameter to specify duration.

Expression:ElapsedPercent

  • Get elapsed time percentage of duration. Add second parameter to specify duration.

Conditions

Callback

Condition:On start

  • Triggered when duration start.
    • Duration ( number or string ) : Duration name

Condition:On interval

  • Triggered when duration interval.
    • Duration ( number or string ) : Duration name

Condition:On end

  • Triggered when duration end.
    • Duration ( number or string ) : Duration name

Durations

Condition:Is duration running

    • Duration ( number or string ) : Duration name