Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ComponentScheduler

The Manager for Component's life-cycle methods.

Hierarchy

  • ComponentScheduler

Index

Constructors

constructor

Properties

Protected _updating

_updating: boolean

lateUpdateInvoker

lateUpdateInvoker: ReusableInvoker

scheduleInNextFrame

scheduleInNextFrame: any[]

startInvoker

startInvoker: OneOffInvoker

updateInvoker

updateInvoker: ReusableInvoker

Static LifeCycleInvoker

LifeCycleInvoker: LifeCycleInvoker = LifeCycleInvoker

Static OneOffInvoker

OneOffInvoker: OneOffInvoker = OneOffInvoker

Static createInvokeImpl

createInvokeImpl: createInvokeImpl = createInvokeImpl

Static invokeOnEnable

invokeOnEnable: (Anonymous function) = CC_EDITOR ? (iterator) => {const compScheduler = cc.director._compScheduler;const array = iterator.array;for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {const comp = array[iterator.i];if (comp._enabled) {callOnEnableInTryCatch(comp);const deactivatedDuringOnEnable = !comp.node._activeInHierarchy;if (!deactivatedDuringOnEnable) {compScheduler._onEnabled(comp);}}}} : (iterator) => {const compScheduler = cc.director._compScheduler;const array = iterator.array;for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {const comp = array[iterator.i];if (comp._enabled) {comp.onEnable();const deactivatedDuringOnEnable = !comp.node._activeInHierarchy;if (!deactivatedDuringOnEnable) {compScheduler._onEnabled(comp);}}}}

Methods

Protected deferredSchedule

  • _deferredSchedule(): void

onDisabled

  • onDisabled(comp: any): void

onEnabled

  • onEnabled(comp: any): void

Protected scheduleImmediate

  • scheduleImmediate(comp: any): void

disableComp

  • disableComp(comp: any): void

enableComp

  • enableComp(comp: any, invoker?: any): void

lateUpdatePhase

  • lateUpdatePhase(dt: any): void

startPhase

  • startPhase(): void

unscheduleAll

  • unscheduleAll(): void

updatePhase

  • updatePhase(dt: any): void

Generated using TypeDoc