Egret Engine R - v6.0.0
    Preparing search index...

    Function startTick

    • 注册并启动一个计时器,通常会以60FPS的速率触发回调方法,并传入当前时间戳。注意:注册后将会持续触发回调方法,若要停止回调,需要手动调用stopTick()方法。

      Parameters

      • callBack: (timeStamp: number) => boolean

        要执行的回调方法。参数 timeStamp 表示从启动Egret框架开始经过的时间(毫秒)。 若回调方法返回值为true,其作用与TimerEvent.updateAfterEvent()类似,将会忽略帧频限制,在此方法处理完成后立即重绘屏幕。

      • thisObject: any

        回调方法的this对象引用。

      Returns void

      Egret 2.4

      Web

      zh_CN