Options
All
  • Public
  • Public/Protected
  • All
Menu

External module scenegraph

Index

Type aliases

Constructor

Constructor: object

Type declaration

Variables

Const Activating

Activating: any = CCObject.Flags.Activating

Const ChangingState

ChangingState: number = Activating | Deactivating

Const Deactivating

Deactivating: any = CCObject.Flags.Deactivating

Const Deactivating

Deactivating: any = CCObject.Flags.Deactivating

Const Destroying

Destroying: any = CCObject.Flags.Destroying

Const Destroying

Destroying: any = CCObject.Flags.Destroying

Const DontDestroy

DontDestroy: any = CCObject.Flags.DontDestroy

Const HideInHierarchy

HideInHierarchy: any = CCObject.Flags.HideInHierarchy

Const IsEditorOnEnableCalled

IsEditorOnEnableCalled: any = CCObject.Flags.IsEditorOnEnableCalled

Const IsOnEnableCalled

IsOnEnableCalled: any = CCObject.Flags.IsOnEnableCalled

Const IsOnLoadCalled

IsOnLoadCalled: any = CCObject.Flags.IsOnLoadCalled

Const IsOnLoadStarted

IsOnLoadStarted: any = CCObject.Flags.IsOnLoadStarted

Const IsPreloadStarted

IsPreloadStarted: any = CCObject.Flags.IsPreloadStarted

Const IsStartCalled

IsStartCalled: any = CCObject.Flags.IsStartCalled

Const MAX_POOL_SIZE

MAX_POOL_SIZE: 4 = 4

Const NullScene

NullScene: null = null

Const TRANSFORM_ON

TRANSFORM_ON: number = 1 << 0

Const _cachedArray

_cachedArray: BaseNode[] = new Array<BaseNode>(16)

Let _currentHovered

_currentHovered: BaseNode | null = null

Const _mouseEvents

_mouseEvents: string[] = [SystemEventType.MOUSE_DOWN.toString(),SystemEventType.MOUSE_ENTER.toString(),SystemEventType.MOUSE_MOVE.toString(),SystemEventType.MOUSE_LEAVE.toString(),SystemEventType.MOUSE_UP.toString(),SystemEventType.MOUSE_WHEEL.toString(),]

Const _qt

_qt: Quat = new Quat()

Const _touchEvents

_touchEvents: string[] = [SystemEventType.TOUCH_START.toString(),SystemEventType.TOUCH_MOVE.toString(),SystemEventType.TOUCH_END.toString(),SystemEventType.TOUCH_CANCEL.toString(),]

Const _up

_up: Vec3 = new Vec3(0, 1, 0)

Const _v3

_v3: Vec3 = new Vec3()

Const activateTasksPool

activateTasksPool: Pool<Object> = new Pool(MAX_POOL_SIZE)

Const array_a

array_a: any[] = new Array(10)

Const bookOfChange

bookOfChange: Map<string, number> = new Map<string, number>()

Const callLateUpdate

callLateUpdate: "c.lateUpdate(dt)" | (Anonymous function) = CC_SUPPORT_JIT ? 'c.lateUpdate(dt)' : (c, dt) => {c.lateUpdate(dt);}

Const callLateUpdateInTryCatch

callLateUpdateInTryCatch: any = CC_EDITOR && callerFunctor('lateUpdate', 'dt')

Const callOnDestroyInTryCatch

callOnDestroyInTryCatch: any = CC_EDITOR && tryCatchFunctor_EDITOR('onDestroy')

Const callOnDisableInTryCatch

callOnDisableInTryCatch: any = CC_EDITOR && callerFunctor('onDisable')

Const callOnEnableInTryCatch

callOnEnableInTryCatch: any = CC_EDITOR && callerFunctor('onEnable')

Const callOnFocusInTryCatch

callOnFocusInTryCatch: any = CC_EDITOR && tryCatchFunctor_EDITOR('onFocusInEditor')

Const callOnLoad

callOnLoad: string | (Anonymous function) = CC_SUPPORT_JIT ? ('c.onLoad();c._objFlags|=' + IsOnLoadCalled) : (c) => {c.onLoad();c._objFlags |= IsOnLoadCalled;}

Const callOnLoadInTryCatch

callOnLoadInTryCatch: any = CC_EDITOR && tryCatchFunctor_EDITOR('onLoad', null,'target._objFlags |= ' + IsOnLoadCalled + '; arg(target);', _onLoadInEditor)

Const callOnLostFocusInTryCatch

callOnLostFocusInTryCatch: any = CC_EDITOR && tryCatchFunctor_EDITOR('onLostFocusInEditor')

Const callPreload

callPreload: "c.__preload();" | (Anonymous function) = CC_SUPPORT_JIT ? 'c.__preload();' : (c) => { c.__preload(); }

Const callPreloadInTryCatch

callPreloadInTryCatch: any = CC_EDITOR && tryCatchFunctor_EDITOR('__preload')

Const callResetInTryCatch

callResetInTryCatch: any = CC_EDITOR && tryCatchFunctor_EDITOR('resetInEditor')

Const callStart

callStart: string | (Anonymous function) = CC_SUPPORT_JIT ? 'c.start();c._objFlags|=' + IsStartCalled : (c) => {c.start();c._objFlags |= IsStartCalled;}

Const callStartInTryCatch

callStartInTryCatch: any = CC_EDITOR && callerFunctor('start', null, 'target._objFlags |= ' + IsStartCalled)

Const callUpdate

callUpdate: "c.update(dt)" | (Anonymous function) = CC_SUPPORT_JIT ? 'c.update(dt)' : (c, dt) => {c.update(dt);}

Const callUpdateInTryCatch

callUpdateInTryCatch: any = CC_EDITOR && callerFunctor('update', 'dt')

Const callerFunctor

callerFunctor: any = CC_EDITOR && tryCatchFunctor_EDITOR

Const fastRemoveAt

fastRemoveAt: fastRemoveAt = array.fastRemoveAt

Const idGenerator

idGenerator: IDGenerator = new IdGenerator('Node')

Const invokeOnLoad

invokeOnLoad: Function = ComponentScheduler.createInvokeImpl(CC_EDITOR ? callOnLoadInTryCatch : callOnLoad,)

Const invokePreload

invokePreload: Function = ComponentScheduler.createInvokeImpl(CC_EDITOR ? callPreloadInTryCatch : callPreload,)

Const m3_1

m3_1: Mat3 = new Mat3()

Const m3_scaling

m3_scaling: Mat3 = new Mat3()

Const m4_1

m4_1: Mat4 = new Mat4()

Let pos

pos: Vec2 = new Vec2()

Const q_a

q_a: Quat = new Quat()

Const q_b

q_b: Quat = new Quat()

Const qt_1

qt_1: Quat = new Quat()

Const v3_a

v3_a: Vec3 = new Vec3()

Functions

checkListeners

  • checkListeners(node: BaseNode, events: string[]): boolean

componentCorrupted

  • componentCorrupted(node: any, comp: any, index: any): void

doDispatchEvent

mouseDownHandler

mouseMoveHandler

mouseUpHandler

mouseWheelHandler

onLoadInEditor

  • onLoadInEditor(comp: any): void

searchMaskInParent

  • searchMaskInParent(node: Node | null): null | object

touchCancelHandler

touchEndHandler

touchMoveHandler

touchStartHandler

baseNodePolyfill

  • baseNodePolyfill(BaseNode: any): void

compareOrder

  • compareOrder(a: any, b: any): number

createInvokeImpl

  • createInvokeImpl(funcOrCode: any, useDt?: any): Function

enableInEditor

  • enableInEditor(comp: any): void

find

  • find(path: string, referenceNode?: Node): Node | null
  • Finds a node by hierarchy path, the path is case-sensitive. It will traverse the hierarchy by splitting the path using '/' character. This function will still returns the node even if it is inactive. It is recommended to not use this function every frame instead cache the result at startup.

    Parameters

    • path: string
    • Optional referenceNode: Node

    Returns Node | null

getConstructor

  • getConstructor(typeOrClassName: string | Function): Function | null

sortedIndex

  • sortedIndex(array: any, comp: any): number

stableRemoveInactive

  • stableRemoveInactive(iterator: any, flagToClear: any): void

Object literals

Const layerList

layerList: object

ALL

ALL: number = 4294967295

DEFAULT

DEFAULT: number = (1 << 30)

EDITOR

EDITOR: number = (1 << 22)

GIZMOS

GIZMOS: number = (1 << 21)

IGNORE_RAYCAST

IGNORE_RAYCAST: number = (1 << 20)

NONE

NONE: number = 0

PROFILER

PROFILER: number = (1 << 28)

SCENE_GIZMO

SCENE_GIZMO: number = (1 << 24)

UI_2D

UI_2D: number = (1 << 25)

UI_3D

UI_3D: number = (1 << 23)

Generated using TypeDoc