Variables
Const Deactivating
Deactivating
: Flags = CCObject.Flags.Deactivating
Const Deactivating
Deactivating
: Flags = CCObject.Flags.Deactivating
Const Destroying
Destroying
: Flags = CCObject.Flags.Destroying
Const DontDestroy
Dont
Destroy: Flags = CCObject.Flags.DontDestroy
Const HideInHierarchy
Hide
InHierarchy: Flags = CCObject.Flags.HideInHierarchy
Const IsEditorOnEnableCalled
Is
EditorOnEnableCalled: Flags = CCObject.Flags.IsEditorOnEnableCalled
Const IsOnEnableCalled
Is
OnEnableCalled: Flags = CCObject.Flags.IsOnEnableCalled
Const IsOnLoadCalled
Is
OnLoadCalled: Flags = CCObject.Flags.IsOnLoadCalled
Const IsOnLoadStarted
Is
OnLoadStarted: Flags = CCObject.Flags.IsOnLoadStarted
Const IsPreloadStarted
Is
PreloadStarted: Flags = CCObject.Flags.IsPreloadStarted
Const IsStartCalled
Is
StartCalled: Flags = CCObject.Flags.IsStartCalled
Const MAX_POOL_SIZE
MAX_POOL_SIZE: 4 = 4
Const TRANSFORM_ON
TRANSFORM_ON: number = 1 << 0
Const _up
_up
: Vec3 = new Vec3(0, 1, 0)
Const activateTasksPool
activateTasksPool: Pool<unknown> = new Pool(MAX_POOL_SIZE)
Const array_a
array_a: any[] = new Array(10)
Const bookOfChange
book
OfChange: Map<Node, number> = new Map<Node, number>()
Const callOnDestroyInTryCatch
callOnDestroyInTryCatch: false | Function = EDITOR && tryCatchFunctor_EDITOR('onDestroy')
Const callOnDisableInTryCatch
callOnDisableInTryCatch: any = EDITOR && callerFunctor('onDisable')
Const callOnEnableInTryCatch
callOnEnableInTryCatch: any = EDITOR && callerFunctor('onEnable')
Const callOnFocusInTryCatch
callOnFocusInTryCatch: false | Function = EDITOR && tryCatchFunctor_EDITOR('onFocusInEditor')
Const callOnLoadInTryCatch
callOnLoadInTryCatch: false | EDITOR = EDITOR && function (c) {try {c.onLoad();} catch (e) {legacyCC._throw(e);}c._objFlags |= IsOnLoadCalled;_onLoadInEditor(c);}
Const callOnLostFocusInTryCatch
callOnLostFocusInTryCatch: false | Function = EDITOR && tryCatchFunctor_EDITOR('onLostFocusInEditor')
Const callPreloadInTryCatch
callPreloadInTryCatch: false | Function = EDITOR && tryCatchFunctor_EDITOR('__preload')
Const callerFunctor
callerFunctor: any = EDITOR && tryCatchFunctor_EDITOR
Const fastRemoveAt
fastRemoveAt: fastRemoveAt = array.fastRemoveAt
Const idGenerator
idGenerator: IDGenerator = new IdGenerator('Node')
Const invokeLateUpdate
invokeLateUpdate: (Anonymous function) = SUPPORT_JIT ? createInvokeImplJit('c.lateUpdate(dt)', true): createInvokeImpl((c, dt) => {c.lateUpdate(dt);},(iterator, dt) => {const array = iterator.array;for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {array[iterator.i].lateUpdate(dt);}},)
Const invokeOnEnable
invokeOnEnable: (Anonymous function) = EDITOR ? (iterator) => {const compScheduler = legacyCC.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 = legacyCC.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);}}}}
Const invokeOnLoad
invokeOnLoad: (Anonymous function) = SUPPORT_JIT ? createInvokeImplJit(`c.onLoad();c._objFlags|=${IsOnLoadCalled}`, false, IsOnLoadCalled): createInvokeImpl((c) => {c.onLoad();c._objFlags |= IsOnLoadCalled;},(iterator) => {const array = iterator.array;for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {const comp = array[iterator.i];comp.onLoad();comp._objFlags |= IsOnLoadCalled;}},IsOnLoadCalled,)
Const invokePreload
invokePreload: (Anonymous function) = SUPPORT_JIT ? createInvokeImplJit('c.__preload();'): createInvokeImpl((c) => { c.__preload(); },(iterator) => {const array = iterator.array;for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {array[iterator.i].__preload();}},)
Const invokeStart
invokeStart: (Anonymous function) = SUPPORT_JIT ? createInvokeImplJit(`c.start();c._objFlags|=${IsStartCalled}`, false, IsStartCalled): createInvokeImpl((c) => {c.start();c._objFlags |= IsStartCalled;},(iterator) => {const array = iterator.array;for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {const comp = array[iterator.i];comp.start();comp._objFlags |= IsStartCalled;}},IsStartCalled,)
Const invokeUpdate
invokeUpdate: (Anonymous function) = SUPPORT_JIT ? createInvokeImplJit('c.update(dt)', true): createInvokeImpl((c, dt) => {c.update(dt);},(iterator, dt) => {const array = iterator.array;for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {array[iterator.i].update(dt);}},)
Const m3_scaling
m3_
scaling: Mat3 = new Mat3()
通过路径从节点树中查找节点的方法,路径是大小写敏感的,并且通过
/
来分隔节点层级。 即使节点的状态是未启用的也可以找到,建议将结果缓存,而不是每次需要都去查找。