Editor Scripting API

    Function setInterval

    • Repeatedly call callback every delayMs milliseconds.

      Parameters

      • callback: () => void
      • delayMs: number

      Returns Timeout

    • Schedules repeated execution of callback every delay milliseconds.

      When delay is larger than 2147483647 or less than 1, the delay will be set to 1. Non-integer delays are truncated to an integer.

      If callback is not a function, a TypeError will be thrown.

      This method has a custom variant for promises that is available using timersPromises.setInterval().

      Type Parameters

      • TArgs extends any[]

      Parameters

      • callback: (...args: TArgs) => void

        The function to call when the timer elapses.

      • Optionalms: number
      • ...args: TArgs

        Optional arguments to pass when the callback is called.

      Returns Timeout

      for use with clearInterval

      v0.0.1

    • Repeatedly call callback every delayMs milliseconds.

      Parameters

      • callback: (args: void) => void
      • Optionalms: number

      Returns Timeout

    MMNEPVFCICPMFPCPTTAAATR