-
cc._decorator Modules
-
anysdk Modules
properties
-
cc Modules
properties
- ENGINE_VERSION
- _drawingUtil
- _renderContext
- _canvas
- container
- view
- director
- winSize
- game
- offset
- size
- offset
- radius
- offset
- points
- systemEvent
- BLEND_SRC
- Integer
- Float
- Boolean
- String
methods
- _initDebugSetting
- error
- warn
- log
- info
- speed
- follow
- setPoints
- cardinalSplineTo
- updatePosition
- cardinalSplineBy
- catmullRomTo
- catmullRomBy
- easeIn
- easeOut
- easeInOut
- easeExponentialIn
- easeExponentialOut
- easeExponentialInOut
- easeSineIn
- easeSineOut
- easeSineInOut
- easeElasticIn
- easeElasticOut
- easeElasticInOut
- easeBounceIn
- easeBounceOut
- easeBounceInOut
- easeBackIn
- easeBackOut
- easeBackInOut
- easeBezierAction
- easeQuadraticActionIn
- easeQuadraticActionOut
- easeQuadraticActionInOut
- easeQuarticActionIn
- easeQuarticActionOut
- easeQuarticActionInOut
- easeQuinticActionIn
- easeQuinticActionOut
- easeQuinticActionInOut
- easeCircleActionIn
- easeCircleActionOut
- easeCircleActionInOut
- easeCubicActionIn
- easeCubicActionOut
- easeCubicActionInOut
- show
- hide
- toggleVisibility
- removeSelf
- flipX
- flipY
- place
- callFunc
- sequence
- repeat
- repeatForever
- spawn
- rotateTo
- rotateBy
- moveBy
- moveTo
- skewTo
- skewBy
- jumpBy
- jumpTo
- bezierBy
- bezierTo
- scaleTo
- scaleBy
- blink
- fadeTo
- fadeIn
- fadeOut
- tintTo
- tintBy
- delayTime
- reverseTime
- targetedAction
- Class
- _isCCClass
- isChildClassOf
- getInheritanceChain
- Enum
- getList
- setAccelerometerEnabled
- setAccelerometerInterval
- lerp
- rand
- randomMinus1To1
- random0To1
- degreesToRadians
- radiansToDegrees
- nodeDrawSetup
- incrementGLDraws
- checkGLErrorDebug
- isValid
- deserialize
- instantiate
- color
- colorEqual
- hexToColor
- colorToHex
- pNeg
- pAdd
- pSub
- pMult
- pMidpoint
- pDot
- pCross
- pPerp
- pRPerp
- pProject
- pLengthSQ
- pDistanceSQ
- pLength
- pDistance
- pNormalize
- pForAngle
- pToAngle
- clampf
- clamp01
- pClamp
- pFromSize
- pCompOp
- pLerp
- pFuzzyEqual
- pCompMult
- pAngleSigned
- pAngle
- pRotateByAngle
- pLineIntersect
- pSegmentIntersect
- pIntersectPoint
- pSameAs
- pZeroIn
- pIn
- pMultIn
- pSubIn
- pAddIn
- pNormalizeIn
- rect
- rectEqualToRect
- rectContainsRect
- rectGetMaxX
- rectGetMidX
- rectGetMinX
- rectGetMaxY
- rectGetMidY
- rectGetMinY
- rectContainsPoint
- rectIntersectsRect
- rectOverlapsRect
- rectUnion
- rectIntersection
- size
- sizeEqualToSize
- V3F_C4B_T2F_QuadZero
- V3F_C4B_T2F_QuadCopy
- V3F_C4B_T2F_QuadsCopy
- v2
- p
- pointEqualToPoint
- find
-
dragonBones Modules
-
cc.js Modules
-
sp Modules
-
sp.spine Modules
-
anysdk.AgentManager Classes
methods
- init
- loadAllPlugins
- unloadAllPlugins
- getUserPlugin
- getIAPPlugins
- getIAPPlugin
- getSocialPlugin
- getSharePlugin
- getAnalyticsPlugin
- getAdsPlugin
- getPushPlugin
- getRECPlugin
- getCrashPlugin
- getAdTrackingPlugin
- getCustomPlugin
- getCustomParam
- getChannelId
- isAnaylticsEnabled
- setIsAnaylticsEnabled
- end
- getInstance
-
anysdk.PluginParam Classes
methods
-
anysdk.PluginProtocol Classes
-
anysdk.ProtocolAdTracking Classes
-
anysdk.ProtocolAds Classes
-
anysdk.ProtocolAnalytics Classes
methods
- startSession
- stopSession
- setSessionContinueMillis
- logError
- logEvent
- logTimedEventBegin
- logTimedEventEnd
- setCaptureUncaughtException
- setAccount
- onChargeRequest
- onChargeSuccess
- onChargeFail
- onChargeOnlySuccess
- onPurchase
- onUse
- onReward
- startLevel
- finishLevel
- failLevel
- startTask
- finishTask
- failTask
- isFunctionSupported
- getPluginName
- getPluginVersion
- getSDKVersion
- callFuncWithParam
- callStringFuncWithParam
- callIntFuncWithParam
- callBoolFuncWithParam
- callFloatFuncWithParam
-
anysdk.ProtocolCrash Classes
-
anysdk.ProtocolCustom Classes
-
anysdk.ProtocolIAP Classes
-
anysdk.ProtocolPush Classes
-
anysdk.ProtocolREC Classes
methods
- share
- startRecording
- stopRecording
- setListener
- getListener
- pauseRecording
- resumeRecording
- isAvailable
- isRecording
- showToolBar
- hideToolBar
- showVideoCenter
- enterPlatform
- setMetaData
- isFunctionSupported
- getPluginName
- getPluginVersion
- getSDKVersion
- callFuncWithParam
- callStringFuncWithParam
- callIntFuncWithParam
- callBoolFuncWithParam
- callFloatFuncWithParam
-
anysdk.ProtocolShare Classes
-
anysdk.ProtocolSocial Classes
methods
-
anysdk.ProtocolUser Classes
methods
- login
- isLogined
- getUserID
- getPluginId
- setListener
- getListener
- logout
- showToolBar
- hideToolBar
- enterPlatform
- exit
- pause
- realNameRegister
- antiAddictionQuery
- submitLoginGameRole
- getUserInfo
- getAvailableLoginType
- setLoginType
- sendToDesktop
- openBBS
- isFunctionSupported
- getPluginName
- getPluginVersion
- getSDKVersion
- callFuncWithParam
- callStringFuncWithParam
- callIntFuncWithParam
- callBoolFuncWithParam
- callFloatFuncWithParam
-
cc.Acceleration Classes
methods
-
cc.Action Classes
-
cc.ActionEase Classes
-
cc.ActionInstant Classes
-
cc.ActionInterval Classes
-
cc.ActionManager Classes
-
cc.AffineTransform Classes
methods
- affineTransformMake
- affineTransformClone
- pointApplyAffineTransform
- sizeApplyAffineTransform
- affineTransformMakeIdentity
- rectApplyAffineTransform
- obbApplyAffineTransform
- affineTransformTranslate
- affineTransformScale
- affineTransformRotate
- affineTransformConcat
- affineTransformConcatIn
- affineTransformEqualToTransform
- affineTransformInvert
- affineTransformInvert
-
cc.Animation Classes
properties
- defaultClip
- currentClip
- _clips
- playOnLoad
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- getClips
- play
- playAdditive
- stop
- pause
- resume
- setCurrentTime
- getAnimationState
- addClip
- removeClip
- sample
- on
- off
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- targetOff
- once
- dispatchEvent
- emit
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.AnimationClip Classes
-
cc.AnimationNode Classes
-
cc.AnimationNodeBase Classes
-
cc.AnimationState Classes
-
cc.Asset Classes
-
cc.AudioClip Classes
properties
methods
-
cc.AudioSource Classes
properties
- isPlaying
- clip
- volume
- mute
- loop
- playOnLoad
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- play
- stop
- pause
- resume
- rewind
- getCurrentTime
- setCurrentTime
- getDuration
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.BitmapFont Classes
properties
methods
-
cc.BlendFunc Classes
methods
-
cc.BoxCollider Classes
properties
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Button Classes
properties
- interactable
- enableAutoGrayEffect
- transition
- normalColor
- pressedColor
- hoverColor
- disabledColor
- duration
- zoomScale
- normalSprite
- pressedSprite
- hoverSprite
- disabledSprite
- target
- clickEvents
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
events
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.CallbacksInvoker Classes
-
cc.Camera Classes
properties
- zoomRatio
- main
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- addTarget
- removeTarget
- getTargets
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Canvas Classes
properties
- instance
- designResolution
- fitHeight
- fitWidth
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.CircleCollider Classes
properties
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.CoffeeScript Classes
-
cc.Collider Classes
properties
- tag
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.CollisionManager Classes
properties
methods
-
cc.Color Classes
-
cc.Component Classes
properties
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Component.EventHandler Classes
-
cc.ContainerStrategy Classes
-
cc.ContentStrategy Classes
-
cc.Details Classes
-
cc.Director Classes
events
- cc.Director.EVENT_PROJECTION_CHANGED
- cc.Director.EVENT_BEFORE_SCENE_LOADING
- cc.Director.EVENT_AFTER_SCENE_LAUNCH
- cc.Director.EVENT_BEFORE_UPDATE
- cc.Director.EVENT_AFTER_UPDATE
- cc.Director.EVENT_BEFORE_VISIT
- cc.Director.EVENT_AFTER_VISIT
- cc.Director.EVENT_AFTER_DRAW
methods
- convertToUI
- getWinSize
- getWinSizeInPixels
- getVisibleSize
- getVisibleOrigin
- pause
- runSceneImmediate
- runScene
- loadScene
- preloadScene
- _loadSceneByUuid
- resume
- setDepthTest
- setClearColor
- setProjection
- setViewport
- getProjection
- setAlphaBlending
- isSendCleanupToScene
- getRunningScene
- getScene
- getAnimationInterval
- isDisplayStats
- setDisplayStats
- isNextDeltaTimeZero
- isPaused
- getTotalFrames
- getScheduler
- setScheduler
- getActionManager
- setActionManager
- getCollisionManager
- getPhysicsManager
- getDeltaTime
- on
- off
- targetOff
- once
- dispatchEvent
- emit
-
cc.DistanceJoint Classes
properties
- distance
- frequency
- 0
- anchor
- connectedAnchor
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.EaseBounce Classes
-
cc.EaseElastic Classes
-
cc.EaseRateAction Classes
-
cc.EditBox Classes
properties
- string
- backgroundImage
- returnType
- inputFlag
- inputMode
- fontSize
- lineHeight
- fontColor
- placeholder
- placeholderFontSize
- placeholderFontColor
- maxLength
- stayOnTop
- tabIndex
- editingDidBegan
- textChanged
- editingDidEnded
- editingReturn
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
events
methods
- setFocus
- isFocused
- destroy
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.EqualToFrame Classes
-
cc.EqualToWindow Classes
-
cc.Event Classes
-
cc.Event.EventAcceleration Classes
-
cc.Event.EventCustom Classes
-
cc.Event.EventKeyboard Classes
-
cc.Event.EventMouse Classes
properties
- NONE
- DOWN
- UP
- MOVE
- SCROLL
- BUTTON_LEFT
- BUTTON_RIGHT
- BUTTON_MIDDLE
- BUTTON_4
- BUTTON_5
- BUTTON_6
- BUTTON_7
- BUTTON_8
- type
- bubbles
- target
- currentTarget
- eventPhase
methods
-
cc.Event.EventTouch Classes
properties
methods
-
cc.EventListener Classes
properties
methods
-
cc.EventTarget Classes
-
cc.FiniteTimeAction Classes
-
cc.Font Classes
properties
methods
-
cc.Game Classes
-
cc.Graphics Classes
properties
- lineWidth
- lineJoin
- lineCap
- strokeColor
- fillColor
- miterLimit
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- moveTo
- lineTo
- bezierCurveTo
- quadraticCurveTo
- arc
- ellipse
- circle
- rect
- roundRect
- fillRect
- clear
- close
- stroke
- fill
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Intersection Classes
-
cc.Joint Classes
properties
- anchor
- connectedAnchor
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Label Classes
properties
- string
- horizontalAlign
- verticalAlign
- actualFontSize
- fontSize
- fontFamily
- lineHeight
- overflow
- enableWrapText
- font
- isSystemFontUsed
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.LabelAtlas Classes
properties
methods
-
cc.LabelOutline Classes
properties
- color
- width
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Layout Classes
properties
- type
- resizeMode
- cellSize
- startAxis
- paddingLeft
- paddingRight
- paddingTop
- paddingBottom
- spacingX
- spacingY
- verticalDirection
- horizontalDirection
- padding
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.LoadingItems Classes
properties
methods
-
cc.Manifold Classes
properties
-
cc.ManifoldPoint Classes
properties
-
cc.Mask Classes
properties
- type
- spriteFrame
- alphaThreshold
- inverted
- segements
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.MotionStreak Classes
properties
- preview
- fadeTime
- minSeg
- stroke
- texture
- color
- fastMode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- reset
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.MotorJoint Classes
properties
- anchor
- connectedAnchor
- linearOffset
- angularOffset
- maxForce
- maxTorque
- correctionFactor
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.MouseJoint Classes
properties
- anchor
- connectedAnchor
- mouseRegion
- target
- frequency
- 0
- maxForce
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Node Classes
properties
- groupIndex
- group
- position
- x
- y
- rotation
- rotationX
- rotationY
- scaleX
- scaleY
- skewX
- skewY
- opacity
- cascadeOpacity
- color
- anchorX
- anchorY
- width
- height
- _ignoreAnchor
- zIndex
- _sgNode
- _sizeProvider
- scale
- _components
- _prefab
- _persistNode
- name
- uuid
- children
- childrenCount
- active
- activeInHierarchy
- tag
- __eventTargets
- parent
- _name
- _objFlags
- isValid
events
- position-changed
- size-changed
- anchor-changed
- child-added
- child-removed
- child-reorder
- group-changed
- touchstart
- active-in-hierarchy-changed
methods
- constructor
- on
- off
- targetOff
- pauseSystemEvents
- resumeSystemEvents
- runAction
- pauseAllActions
- resumeAllActions
- stopAllActions
- stopAction
- stopActionByTag
- getActionByTag
- getNumberOfRunningActions
- getPosition
- setPosition
- getScale
- setScale
- getContentSize
- setContentSize
- setOpacityModifyRGB
- isOpacityModifyRGB
- getAnchorPoint
- setAnchorPoint
- getAnchorPointInPoints
- getDisplayedOpacity
- getDisplayedColor
- getNodeToParentTransformAR
- getBoundingBox
- getBoundingBoxToWorld
- getNodeToParentTransform
- getNodeToWorldTransform
- getNodeToWorldTransformAR
- getParentToNodeTransform
- getWorldToNodeTransform
- convertToNodeSpace
- convertToWorldSpace
- convertToNodeSpaceAR
- convertToWorldSpaceAR
- convertTouchToNodeSpace
- convertTouchToNodeSpaceAR
- addChild
- cleanup
- sortAllChildren
- getPositionX
- setPositionX
- getPositionY
- setPositionY
- getLocalZOrder
- setLocalZOrder
- isCascadeOpacityEnabled
- setCascadeOpacityEnabled
- attr
- getChildByTag
- getChildByUuid
- getChildByName
- getSiblingIndex
- setSiblingIndex
- removeFromParent
- removeChild
- removeChildByTag
- removeAllChildren
- isChildOf
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- addComponent
- _addComponentAt
- removeComponent
- _getDependComponent
- destroyAllChildren
- once
- dispatchEvent
- emit
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Node.EventType Classes
-
cc.NodePool Classes
-
cc.OriginalContainer Classes
-
cc.PageView Classes
properties
- sizeMode
- direction
- scrollThreshold
- autoPageTurningThreshold
- pageTurningEventTiming
- indicator
- pageEvents
- content
- horizontal
- vertical
- inertia
- brake
- elastic
- bounceDuration
- horizontalScrollBar
- verticalScrollBar
- scrollEvents
- cancelInnerEvents
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
events
- page-turning
- scroll-to-top
- scroll-to-bottom
- scroll-to-left
- scroll-to-right
- scrolling
- bounce-bottom
- bounce-top
- bounce-left
- bounce-right
- scroll-ended
- touch-up
methods
- getCurrentPageIndex
- setCurrentPageIndex
- getPages
- addPage
- insertPage
- removePage
- removePageAtIndex
- removeAllPages
- scrollToPage
- scrollToBottom
- scrollToTop
- scrollToLeft
- scrollToRight
- scrollToTopLeft
- scrollToTopRight
- scrollToBottomLeft
- scrollToBottomRight
- scrollToOffset
- getScrollOffset
- getMaxScrollOffset
- scrollToPercentHorizontal
- scrollTo
- scrollToPercentVertical
- stopAutoScroll
- setContentPosition
- getContentPosition
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.PageViewIndicator Classes
properties
- spriteFrame
- direction
- cellSize
- spacing
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- setPageView
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.ParticleSystem Classes
properties
- preview
- custom
- file
- texture
- particleCount
- srcBlendFactor
- dstBlendFactor
- playOnLoad
- autoRemoveOnFinish
- active
- totalParticles
- duration
- emissionRate
- life
- lifeVar
- startColor
- startColorVar
- endColor
- endColorVar
- angle
- angleVar
- startSize
- startSizeVar
- endSize
- endSizeVar
- startSpin
- startSpinVar
- endSpin
- endSpinVar
- sourcePos
- posVar
- positionType
- emitterMode
- gravity
- speed
- speedVar
- tangentialAccel
- tangentialAccelVar
- radialAccel
- radialAccelVar
- rotationIsDir
- startRadius
- startRadiusVar
- endRadius
- endRadiusVar
- rotatePerS
- rotatePerSVar
- DURATION_INFINITY
- START_SIZE_EQUAL_TO_END_SIZE
- START_RADIUS_EQUAL_TO_END_RADIUS
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- addParticle
- stopSystem
- resetSystem
- isFull
- setDisplayFrame
- setTextureWithRect
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.PhysicsBoxCollider Classes
properties
- density
- sensor
- friction
- restitution
- body
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getAABB
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.PhysicsChainCollider Classes
properties
- density
- sensor
- friction
- restitution
- body
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getAABB
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.PhysicsCircleCollider Classes
properties
- density
- sensor
- friction
- restitution
- body
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getAABB
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.PhysicsCollider Classes
-
cc.PhysicsContact Classes
-
cc.PhysicsImpulse Classes
properties
-
cc.PhysicsManager Classes
-
cc.PhysicsPolygonCollider Classes
properties
- density
- sensor
- friction
- restitution
- body
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getAABB
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.PhysicsRayCastResult Classes
-
cc.Pipeline Classes
-
cc.Pipeline.Downloader Classes
methods
-
cc.Pipeline.Loader Classes
methods
-
cc.Playable Classes
-
cc.PolygonCollider Classes
properties
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Prefab Classes
-
cc.PrismaticJoint Classes
properties
- localAxisA
- referenceAngle
- enableLimit
- enableMotor
- lowerLimit
- upperLimit
- maxMotorForce
- motorSpeed
- anchor
- connectedAnchor
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.ProgressBar Classes
properties
- barSprite
- mode
- totalLength
- progress
- reverse
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.ProportionalToFrame Classes
-
cc.ProportionalToWindow Classes
-
cc.Quad2 Classes
-
cc.Quad3 Classes
methods
-
cc.RawAsset Classes
properties
methods
-
cc.Rect Classes
-
cc.ResolutionPolicy Classes
-
cc.RevoluteJoint Classes
properties
- referenceAngle
- lowerAngle
- upperAngle
- maxMotorTorque
- motorSpeed
- enableLimit
- enableMotor
- anchor
- connectedAnchor
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- getJointAngle
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.RichText Classes
properties
- string
- horizontalAlign
- fontSize
- font
- maxWidth
- lineHeight
- imageAtlas
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.RigidBody Classes
properties
- enabledContactListener
- bullet
- type
- allowSleep
- gravityScale
- linearDamping
- angularDamping
- linearVelocity
- angularVelocity
- fixedRotation
- awake
- active
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- onBeginContact
- onEndContact
- onPreSolve
- onPostSolve
- getLocalPoint
- getWorldPoint
- getWorldVector
- getLocalVector
- getWorldPosition
- getWorldRotation
- getLocalCenter
- getWorldCenter
- getLinearVelocityFromWorldPoint
- getMass
- getInertia
- getInertia
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.RopeJoint Classes
properties
- maxLength
- anchor
- connectedAnchor
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Scene Classes
properties
- autoReleaseAssets
- groupIndex
- group
- position
- x
- y
- rotation
- rotationX
- rotationY
- scaleX
- scaleY
- skewX
- skewY
- opacity
- cascadeOpacity
- color
- anchorX
- anchorY
- width
- height
- _ignoreAnchor
- zIndex
- _sgNode
- _sizeProvider
- scale
- _components
- _prefab
- _persistNode
- name
- uuid
- children
- childrenCount
- active
- activeInHierarchy
- tag
- __eventTargets
- parent
- _name
- _objFlags
- isValid
events
- position-changed
- size-changed
- anchor-changed
- child-added
- child-removed
- child-reorder
- group-changed
- touchstart
- active-in-hierarchy-changed
methods
- constructor
- on
- off
- targetOff
- pauseSystemEvents
- resumeSystemEvents
- runAction
- pauseAllActions
- resumeAllActions
- stopAllActions
- stopAction
- stopActionByTag
- getActionByTag
- getNumberOfRunningActions
- getPosition
- setPosition
- getScale
- setScale
- getContentSize
- setContentSize
- setOpacityModifyRGB
- isOpacityModifyRGB
- getAnchorPoint
- setAnchorPoint
- getAnchorPointInPoints
- getDisplayedOpacity
- getDisplayedColor
- getNodeToParentTransformAR
- getBoundingBox
- getBoundingBoxToWorld
- getNodeToParentTransform
- getNodeToWorldTransform
- getNodeToWorldTransformAR
- getParentToNodeTransform
- getWorldToNodeTransform
- convertToNodeSpace
- convertToWorldSpace
- convertToNodeSpaceAR
- convertToWorldSpaceAR
- convertTouchToNodeSpace
- convertTouchToNodeSpaceAR
- addChild
- cleanup
- sortAllChildren
- getPositionX
- setPositionX
- getPositionY
- setPositionY
- getLocalZOrder
- setLocalZOrder
- isCascadeOpacityEnabled
- setCascadeOpacityEnabled
- attr
- getChildByTag
- getChildByUuid
- getChildByName
- getSiblingIndex
- setSiblingIndex
- removeFromParent
- removeChild
- removeChildByTag
- removeAllChildren
- isChildOf
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- addComponent
- _addComponentAt
- removeComponent
- _getDependComponent
- destroyAllChildren
- once
- dispatchEvent
- emit
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.SceneAsset Classes
-
cc.Scheduler Classes
properties
methods
- setTimeScale
- getTimeScale
- update
- scheduleCallbackForTarget
- schedule
- scheduleUpdate
- unschedule
- unscheduleUpdate
- unscheduleAllForTarget
- unscheduleAll
- unscheduleAllWithMinPriority
- isScheduled
- pauseAllTargets
- pauseAllTargetsWithMinPriority
- resumeTargets
- pauseTarget
- resumeTarget
- isTargetPaused
- scheduleUpdateForTarget
- unscheduleCallbackForTarget
- unscheduleUpdateForTarget
- unscheduleAllCallbacksForTarget
- unscheduleAllCallbacks
- unscheduleAllCallbacksWithMinPriority
-
cc.ScrollView Classes
properties
- content
- horizontal
- vertical
- inertia
- brake
- elastic
- bounceDuration
- horizontalScrollBar
- verticalScrollBar
- scrollEvents
- cancelInnerEvents
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
events
- scroll-to-top
- scroll-to-bottom
- scroll-to-left
- scroll-to-right
- scrolling
- bounce-bottom
- bounce-top
- bounce-left
- bounce-right
- scroll-ended
- touch-up
methods
- scrollToBottom
- scrollToTop
- scrollToLeft
- scrollToRight
- scrollToTopLeft
- scrollToTopRight
- scrollToBottomLeft
- scrollToBottomRight
- scrollToOffset
- getScrollOffset
- getMaxScrollOffset
- scrollToPercentHorizontal
- scrollTo
- scrollToPercentVertical
- stopAutoScroll
- setContentPosition
- getContentPosition
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Scrollbar Classes
properties
- handle
- direction
- enableAutoHide
- autoHideTime
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Size Classes
-
cc.Slider Classes
properties
- handle
- direction
- progress
- slideEvents
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
events
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Sprite Classes
properties
- spriteFrame
- type
- fillType
- fillCenter
- fillStart
- fillRange
- trim
- srcBlendFactor
- dstBlendFactor
- sizeMode
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- setInsetLeft
- getInsetLeft
- setInsetTop
- getInsetTop
- setInsetRight
- getInsetRight
- setInsetBottom
- getInsetBottom
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.SpriteAtlas Classes
properties
methods
-
cc.SpriteDistortion Classes
properties
- offset
- tiling
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.SpriteFrame Classes
properties
- _textureFilenameSetter
- insetTop
- insetBottom
- insetLeft
- insetRight
- rawUrl
- rawUrls
- _rawFiles
- _uuid
- _name
- _objFlags
- name
- isValid
methods
- constructor
- textureLoaded
- addLoadedEventListener
- isRotated
- setRotated
- getRect
- setRect
- getOriginalSize
- setOriginalSize
- getTexture
- getOffset
- setOffset
- clone
- setTexture
- ensureLoadTexture
- clearTexture
- serialize
- createNode
- _setRawFiles
- _preloadRawFiles
- on
- off
- targetOff
- once
- dispatchEvent
- emit
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.SystemEvent Classes
-
cc.TMXObject Classes
-
cc.TTFFont Classes
-
cc.Tex2F Classes
-
cc.TextAsset Classes
-
cc.Texture2D Classes
properties
- PIXEL_FORMAT_RGBA8888
- PIXEL_FORMAT_RGB888
- PIXEL_FORMAT_RGB565
- PIXEL_FORMAT_A8
- PIXEL_FORMAT_I8
- PIXEL_FORMAT_AI88
- PIXEL_FORMAT_RGBA4444
- PIXEL_FORMAT_RGB5A1
- PIXEL_FORMAT_PVRTC4
- PIXEL_FORMAT_PVRTC2
- PIXEL_FORMAT_DEFAULT
- defaultPixelFormat
- name
- url
- pixelFormat
- pixelWidth
- pixelHeight
- width
- height
- _uuid
- _name
- _objFlags
- isValid
methods
- getPixelWidth
- getPixelHeight
- getContentSize
- getContentSizeInPixels
- initWithElement
- initWithData
- initWithImage
- getHtmlElementObj
- isLoaded
- handleLoadedTexture
- description
- releaseTexture
- getPixelFormat
- hasPremultipliedAlpha
- hasMipmaps
- setTexParameters
- setAntiAliasTexParameters
- setAliasTexParameters
- on
- off
- targetOff
- once
- dispatchEvent
- emit
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.TextureAtlas Classes
properties
methods
- constructor
- getTotalQuads
- getCapacity
- getTexture
- setTexture
- setDirty
- isDirty
- getQuads
- setQuads
- initWithFile
- initWithTexture
- updateQuad
- insertQuad
- insertQuads
- insertQuadFromIndex
- removeQuadAtIndex
- removeQuadsAtIndex
- removeAllQuads
- resizeCapacity
- increaseTotalQuadsWith
- moveQuadsFromIndex
- fillWithEmptyQuadsFromIndex
- drawNumberOfQuads
-
cc.TiledLayer Classes
properties
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- getLayerName
- SetLayerName
- getProperty
- getPositionAt
- removeTileAt
- setTileGID
- getTileGIDAt
- getTileAt
- releaseMap
- setContentSize
- getTexture
- setTexture
- setTileOpacity
- getLayerSize
- setLayerSize
- getMapTileSize
- setMapTileSize
- getTiles
- setTiles
- getTileSet
- setTileSet
- getLayerOrientation
- setLayerOrientation
- getProperties
- setProperties
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.TiledMap Classes
properties
- tmxAsset
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- getMapSize
- setMapSize
- getTileSize
- setTileSize
- getMapOrientation
- setMapOrientation
- getObjectGroups
- getProperties
- setProperties
- allLayers
- getLayer
- getObjectGroup
- getProperty
- getPropertiesForGID
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.TiledMapAsset Classes
-
cc.TiledObjectGroup Classes
properties
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- getPositionOffset
- setPositionOffset
- getProperties
- setProperties
- getGroupName
- setGroupName
- getObject
- getObjects
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Toggle Classes
properties
- isChecked
- toggleGroup
- checkMark
- checkEvents
- interactable
- enableAutoGrayEffect
- transition
- normalColor
- pressedColor
- hoverColor
- disabledColor
- duration
- zoomScale
- normalSprite
- pressedSprite
- hoverSprite
- disabledSprite
- target
- clickEvents
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
events
methods
- check
- uncheck
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.ToggleGroup Classes
properties
- allowSwitchOff
- toggleItems
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Touch Classes
-
cc.TypeScript Classes
-
cc.V2F_C4B_T2F Classes
-
cc.V2F_C4B_T2F_Triangle Classes
methods
-
cc.V3F_C4B_T2F Classes
methods
-
cc.V3F_C4B_T2F_Quad Classes
-
cc.ValueType Classes
-
cc.Vec2 Classes
-
cc.Vertex2F Classes
-
cc.Vertex3F Classes
-
cc.VideoPlayer Classes
properties
- resourceType
- remoteURL
- clip
- currentTime
- keepAspectRatio
- isFullscreen
- videoPlayerEvent
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
events
methods
- play
- resume
- pause
- stop
- getDuration
- isPlaying
- destroy
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.View Classes
methods
- setTargetDensityDPI
- getTargetDensityDPI
- resizeWithBrowserSize
- setResizeCallback
- setOrientation
- adjustViewPort
- enableRetina
- isRetinaEnabled
- enableAntiAlias
- isAntiAliasEnabled
- enableAutoFullScreen
- isAutoFullScreenEnabled
- isViewReady
- setContentTranslateLeftTop
- getContentTranslateLeftTop
- getFrameSize
- setFrameSize
- getVisibleSize
- getVisibleSizeInPixel
- getVisibleOrigin
- getVisibleOriginInPixel
- canSetContentScaleFactor
- getResolutionPolicy
- setResolutionPolicy
- setDesignResolutionSize
- getDesignResolutionSize
- setRealPixelResolution
- setViewPortInPoints
- setScissorInPoints
- isScissorEnabled
- getScissorRect
- setViewName
- getViewName
- getViewPortRect
- getScaleX
- getScaleY
- getDevicePixelRatio
- convertToLocationInView
- _getInstance
-
cc.ViewGroup Classes
properties
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.WebGLColor Classes
-
cc.WebView Classes
properties
- url
- webviewLoadedEvents
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
events
methods
- destroy
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.WeldJoint Classes
properties
- referenceAngle
- frequency
- 0
- anchor
- connectedAnchor
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.WheelJoint Classes
properties
- localAxisA
- maxMotorTorque
- motorSpeed
- enableMotor
- frequency
- dampingRatio
- anchor
- connectedAnchor
- connectedBody
- collideConnected
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- apply
- getWorldAnchor
- getWorldConnectedAnchor
- getReactionForce
- getReactionTorque
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Widget Classes
properties
- target
- isAlignTop
- isAlignVerticalCenter
- isAlignBottom
- isAlignLeft
- isAlignHorizontalCenter
- isAlignRight
- isStretchWidth
- isStretchHeight
- top
- bottom
- left
- right
- horizontalCenter
- verticalCenter
- isAbsoluteHorizontalCenter
- isAbsoluteVerticalCenter
- isAbsoluteTop
- isAbsoluteBottom
- isAbsoluteLeft
- isAbsoluteRight
- isAlignOnce
- _alignFlags
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- updateAlignment
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.WorldManifold Classes
-
cc.audioEngine Classes
-
cc.eventManager Classes
-
cc.inputManager Classes
-
cc.loader Classes
properties
methods
- addDownloadHandlers
- addLoadHandlers
- load
- loadRes
- loadResArray
- loadResDir
- getRes
- getDependsRecursively
- release
- releaseAsset
- releaseRes
- releaseResDir
- releaseAll
- setAutoRelease
- setAutoReleaseRecursively
- isAutoRelease
- constructor
- insertPipe
- appendPipe
- flowIn
- flowInDeps
- copyItemStates
- isFlowing
- getItems
- getItem
- removeItem
- clear
-
cc.pool Classes
-
cc.screen Classes
-
cc.sys Classes
properties
- LANGUAGE_ENGLISH
- LANGUAGE_CHINESE
- LANGUAGE_FRENCH
- LANGUAGE_ITALIAN
- LANGUAGE_GERMAN
- LANGUAGE_SPANISH
- LANGUAGE_DUTCH
- LANGUAGE_RUSSIAN
- LANGUAGE_KOREAN
- LANGUAGE_JAPANESE
- LANGUAGE_HUNGARIAN
- LANGUAGE_PORTUGUESE
- LANGUAGE_ARABIC
- LANGUAGE_NORWEGIAN
- LANGUAGE_POLISH
- LANGUAGE_TURKISH
- LANGUAGE_UKRAINIAN
- LANGUAGE_ROMANIAN
- LANGUAGE_BULGARIAN
- LANGUAGE_UNKNOWN
- OS_IOS
- OS_ANDROID
- OS_WINDOWS
- OS_MARMALADE
- OS_LINUX
- OS_BADA
- OS_BLACKBERRY
- OS_OSX
- OS_WP8
- OS_WINRT
- OS_UNKNOWN
- UNKNOWN
- WIN32
- LINUX
- MACOS
- ANDROID
- IPHONE
- IPAD
- BLACKBERRY
- NACL
- EMSCRIPTEN
- TIZEN
- WINRT
- WP8
- MOBILE_BROWSER
- DESKTOP_BROWSER
- EDITOR_PAGE
- EDITOR_CORE
- BROWSER_TYPE_WECHAT
- BROWSER_TYPE_ANDROID
- BROWSER_TYPE_IE
- BROWSER_TYPE_QQ
- BROWSER_TYPE_MOBILE_QQ
- BROWSER_TYPE_UC
- BROWSER_TYPE_360
- BROWSER_TYPE_BAIDU_APP
- BROWSER_TYPE_BAIDU
- BROWSER_TYPE_MAXTHON
- BROWSER_TYPE_OPERA
- BROWSER_TYPE_OUPENG
- BROWSER_TYPE_MIUI
- BROWSER_TYPE_FIREFOX
- BROWSER_TYPE_SAFARI
- BROWSER_TYPE_CHROME
- BROWSER_TYPE_LIEBAO
- BROWSER_TYPE_QZONE
- BROWSER_TYPE_SOUGOU
- BROWSER_TYPE_UNKNOWN
- isNative
- isBrowser
- isMobile
- platform
- language
- os
- osVersion
- osMainVersion
- browserType
- browserVersion
- windowPixelResolution
- localStorage
- capabilities
methods
-
cc.textureCache Classes
-
cc.url Classes
-
cc.visibleRect Classes
-
dragonBones.ArmatureDisplay Classes
properties
- dragonAsset
- dragonAtlasAsset
- armatureName
- animationName
- _defaultArmatureIndex
- timeScale
- playTimes
- debugBones
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- playAnimation
- getArmatureNames
- getAnimationNames
- addEventListener
- removeEventListener
- buildArmature
- armature
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
dragonBones.DragonBonesAsset Classes
-
js.Pool Classes
-
js.array Classes
-
sp.Skeleton Classes
properties
- paused
- skeletonData
- defaultSkin
- defaultAnimation
- animation
- _defaultSkinIndex
- loop
- premultipliedAlpha
- timeScale
- debugSlots
- debugBones
- _sgNode
- __eventTargets
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- _name
- _objFlags
- name
- isValid
methods
- updateWorldTransform
- setToSetupPose
- setBonesToSetupPose
- setSlotsToSetupPose
- findBone
- findSlot
- setSkin
- getAttachment
- setAttachment
- setSkeletonData
- setAnimationStateData
- setMix
- setAnimationListener
- setAnimation
- addAnimation
- findAnimation
- getCurrent
- clearTracks
- clearTrack
- setStartListener
- setInterruptListener
- setEndListener
- setDisposeListener
- setCompleteListener
- setEventListener
- setTrackStartListener
- setTrackInterruptListener
- setTrackEndListener
- setTrackDisposeListener
- setTrackCompleteListener
- setTrackEventListener
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- resetInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
sp.SkeletonData Classes
-
anysdk.AccountGender Enums
-
anysdk.AccountOperate Enums
-
anysdk.AccountType Enums
-
anysdk.AdsPos Enums
-
anysdk.AdsResultCode Enums
-
anysdk.AdsType Enums
-
anysdk.CustomResultCode Enums
-
anysdk.PayResultCode Enums
-
anysdk.RECResultCode Enums
-
anysdk.ShareResultCode Enums
-
anysdk.SocialRetCode Enums
- kScoreSubmitSucceed
- kScoreSubmitfail
- kAchUnlockSucceed
- kAchUnlockFail
- kSocialSignInSucceed
- kSocialSignInFail
- kSocialSignOutSucceed
- kSocialSignOutFail
- kSocialGetGameFriends
- kSocialExtensionCode
- kSocialGetFriendsInfoSuccess
- kSocialGetFriendsInfoFail
- kSocialAlreadySubscription
- kSocialNoSubscription
- kSocialSubscriptionFail
-
anysdk.TaskType Enums
-
anysdk.ToolBarPlace Enums
- kInitSuccess
- kInitFail
- kLoginSuccess
- kLoginNetworkError
- kLoginNoNeed
- kLoginFail
- kLoginCancel
- kLogoutSuccess
- kLogoutFail
- kPlatformEnter
- kPlatformBack
- kPausePage
- kExitPage
- kAntiAddictionQuery
- kRealNameRegister
- kAccountSwitchSuccess
- kAccountSwitchFail
- kOpenShop
- kAccountSwitchCancel
- kUserExtension
- kSendToDesktopSuccess
- kSendToDesktopFail
- kGetAvailableLoginTypeSuccess
- kGetAvailableLoginTypeFail
- kGetUserInfoSuccess
- kGetUserInfoFail
- kOpenBBSSuccess
- kOpenBBSFail
-
cc.BlendFactor Enums
- ONE
- ZERO
- SRC_ALPHA
- SRC_COLOR
- DST_ALPHA
- DST_COLOR
- ONE_MINUS_SRC_ALPHA
- ONE_MINUS_SRC_COLOR
- ONE_MINUS_DST_ALPHA
- ONE_MINUS_DST_COLOR
-
cc.Button.Transition Enums
-
cc.DebugMode Enums
-
cc.DrawBits Enums
-
cc.EditBox.InputFlag Enums
-
cc.EditBox.InputMode Enums
-
cc.Graphics.LineCap Enums
-
cc.Graphics.LineJoin Enums
-
cc.ImageFormat Enums
-
cc.KEY Enums
- none
- back
- menu
- backspace
- tab
- enter
- shift
- ctrl
- alt
- pause
- capslock
- escape
- space
- pageup
- pagedown
- end
- home
- left
- up
- right
- down
- select
- insert
- Delete
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- a
- b
- c
- d
- e
- f
- g
- h
- i
- j
- k
- l
- m
- n
- o
- p
- q
- r
- s
- t
- u
- v
- w
- x
- y
- z
- num0
- num1
- num2
- num3
- num4
- num5
- num6
- num7
- num8
- num9
- *
- +
- -
- numdel
- /
- f1
- f2
- f3
- f4
- f5
- f6
- f7
- f8
- f9
- f10
- f11
- f12
- numlock
- scrolllock
- ;
- semicolon
- equal
- =
- ,
- comma
- dash
- .
- period
- forwardslash
- grave
- [
- openbracket
- backslash
- ]
- closebracket
- quote
- dpadLeft
- dpadRight
- dpadUp
- dpadDown
- dpadCenter
-
cc.Label.HorizontalAlign Enums
-
cc.Label.Overflow Enums
-
cc.Label.Type Enums
-
cc.Label.VerticalAlign Enums
-
cc.Layout.AxisDirection Enums
-
cc.Layout.ResizeMode Enums
-
cc.Layout.Type Enums
-
cc.Mask.Type Enums
-
cc.PageView.Direction Enums
-
cc.PageView.EventType Enums
-
cc.PageView.SizeMode Enums
-
cc.ProgressBar.Mode Enums
-
cc.RayCastType Enums
-
cc.RigidBodyType Enums
-
cc.ScrollView.EventType Enums
-
cc.Scrollbar.Direction Enums
-
cc.Slider.Direction Enums
-
cc.Sprite.FillType Enums
-
cc.Sprite.SizeMode Enums
-
cc.Sprite.SpriteType Enums
-
cc.SystemEvent.EventType Enums
-
cc.TextAlignment Enums
-
cc.Texture2D.WrapMode Enums
-
cc.TiledMap.Orientation Enums
-
cc.VideoPlayer.EventType Enums
-
cc.WebView.EventType Enums
-
cc.WrapMode Enums
-
cc.macro Enums
- INVALID_INDEX
- NODE_TAG_INVALID
- PI
- PI2
- FLT_MAX
- FLT_MIN
- RAD
- DEG
- UINT_MAX
- REPEAT_FOREVER
- FLT_EPSILON
- ONE
- ZERO
- SRC_ALPHA
- SRC_ALPHA_SATURATE
- SRC_COLOR
- DST_ALPHA
- DST_COLOR
- ONE_MINUS_SRC_ALPHA
- ONE_MINUS_SRC_COLOR
- ONE_MINUS_DST_ALPHA
- ONE_MINUS_DST_COLOR
- ONE_MINUS_CONSTANT_ALPHA
- ONE_MINUS_CONSTANT_COLOR
- LINEAR
- BLEND_DST
- WEB_ORIENTATION_PORTRAIT
- WEB_ORIENTATION_LANDSCAPE_LEFT
- WEB_ORIENTATION_PORTRAIT_UPSIDE_DOWN
- WEB_ORIENTATION_LANDSCAPE_RIGHT
- ORIENTATION_PORTRAIT
- ORIENTATION_LANDSCAPE
- ORIENTATION_AUTO
- VERTEX_ATTRIB_FLAG_NONE
- VERTEX_ATTRIB_FLAG_POSITION
- VERTEX_ATTRIB_FLAG_COLOR
- VERTEX_ATTRIB_FLAG_TEX_COORDS
- VERTEX_ATTRIB_FLAG_POS_COLOR_TEX
- GL_ALL
- VERTEX_ATTRIB_POSITION
- VERTEX_ATTRIB_COLOR
- VERTEX_ATTRIB_TEX_COORDS
- VERTEX_ATTRIB_MAX
- UNIFORM_PMATRIX
- UNIFORM_MVMATRIX
- UNIFORM_MVPMATRIX
- UNIFORM_TIME
- UNIFORM_SINTIME
- UNIFORM_COSTIME
- UNIFORM_RANDOM01
- UNIFORM_SAMPLER
- UNIFORM_MAX
- SHADER_POSITION_TEXTURECOLOR
- SHADER_SPRITE_POSITION_TEXTURECOLOR
- SHADER_POSITION_TEXTURECOLORALPHATEST
- SHADER_SPRITE_POSITION_TEXTURECOLORALPHATEST
- SHADER_POSITION_COLOR
- SHADER_SPRITE_POSITION_COLOR
- SHADER_POSITION_TEXTURE
- SHADER_POSITION_TEXTURE_UCOLOR
- SHADER_POSITION_TEXTUREA8COLOR
- SHADER_POSITION_UCOLOR
- SHADER_POSITION_LENGTHTEXTURECOLOR
- UNIFORM_PMATRIX_S
- UNIFORM_MVMATRIX_S
- UNIFORM_MVPMATRIX_S
- UNIFORM_TIME_S
- UNIFORM_SINTIME_S
- UNIFORM_COSTIME_S
- UNIFORM_RANDOM01_S
- UNIFORM_SAMPLER_S
- UNIFORM_ALPHA_TEST_VALUE_S
- ATTRIBUTE_NAME_COLOR
- ATTRIBUTE_NAME_POSITION
- ATTRIBUTE_NAME_TEX_COORD
- ITEM_SIZE
- CURRENT_ITEM
- ZOOM_ACTION_TAG
- NORMAL_TAG
- SELECTED_TAG
- DISABLE_TAG
- FIX_ARTIFACTS_BY_STRECHING_TEXEL
- DIRECTOR_STATS_POSITION
- DIRECTOR_FPS_INTERVAL
- COCOSNODE_RENDER_SUBPIXEL
- SPRITEBATCHNODE_RENDER_SUBPIXEL
- AUTO_PREMULTIPLIED_ALPHA_FOR_PNG
- OPTIMIZE_BLEND_FUNC_FOR_PREMULTIPLIED_ALPHA
- TEXTURE_ATLAS_USE_TRIANGLE_STRIP
- TEXTURE_ATLAS_USE_VAO
- TEXTURE_NPOT_SUPPORT
- USE_LA88_LABELS
- SPRITE_DEBUG_DRAW
- LABELBMFONT_DEBUG_DRAW
- LABELATLAS_DEBUG_DRAW
- ENABLE_STACKABLE_ACTIONS
- ENABLE_GL_STATE_CACHE
- TOUCH_TIMEOUT
- BATCH_VERTEX_COUNT
- ENABLE_GC_FOR_NATIVE_OBJECTS
- ENABLE_TILEDMAP_CULLING
- DOWNLOAD_MAX_CONCURRENT
-
sp.AnimationEventType Enums
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
methods
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
properties
Director
ATTENTION: USE cc.director INSTEAD OF cc.Director.
cc.director is a singleton object which manage your game's logic flow.
Since the cc.director is a singleton, you don't need to call any constructor or create functions,
the standard way to use it is by calling:
- cc.director.methodName();
It creates and handle the main Window and manages how and when to execute the Scenes.
The cc.director is also responsible for:
- initializing the OpenGL context
- setting the OpenGL pixel format (default on is RGB565)
- setting the OpenGL buffer depth (default on is 0-bit)
- setting the color for clear screen (default one is BLACK)
- setting the projection (default one is 3D)
- setting the orientation (default one is Portrait)
The cc.director also sets the default OpenGL context:
- GL_TEXTURE_2D is enabled
- GL_VERTEX_ARRAY is enabled
- GL_COLOR_ARRAY is enabled
- GL_TEXTURE_COORD_ARRAY is enabled
cc.director also synchronizes timers with the refresh rate of the display.
Features and Limitations:
- Scheduled timers & drawing are synchronizes with the refresh rate of the display
- Only supports animation intervals of 1/60 1/30 & 1/15
Methods
convertToUI
(
-
glPoint
)
Vec2
- glPoint
getWinSize ( ) Size
Returns the size of the WebGL view in points.
It takes into account any possible rotation (device orientation) of the window.
returns:
getWinSizeInPixels ( ) Size
Returns the size of the OpenGL view in pixels.
It takes into account any possible rotation (device orientation) of the window.
On Mac winSize and winSizeInPixels return the same value.
returns:
pause ( )
Pause the director's ticker, only involve the game logic execution. It won't pause the rendering process nor the event manager. If you want to pause the entier game including rendering, audio and event, please use Game.pause
runSceneImmediate
(
-
scene
-
[onBeforeLoadScene
]
-
[onLaunched
]
)
- scene
- [onBeforeLoadScene ]
- [onLaunched ]
Run a scene. Replaces the running scene with a new one or enter the first scene.
The new scene will be launched immediately.
runScene
(
-
scene
-
[onBeforeLoadScene
]
-
[onLaunched
]
)
private
- scene
- [onBeforeLoadScene ]
- [onLaunched ]
Run a scene. Replaces the running scene with a new one or enter the first scene. The new scene will be launched at the end of the current frame.
loadScene
(
-
sceneName
-
[onLaunched
]
)
Boolean
- sceneName
- [onLaunched ]
preloadScene
(
-
sceneName
-
[onLoaded
]
)
- sceneName
- [onLoaded ]
Preloads the scene to reduces loading time. You can call this method at any time you want.
After calling this method, you still need to launch the scene by cc.director.loadScene
.
It will be totally fine to call cc.director.loadScene
at any time even if the preloading is not
yet finished, the scene will be launched after loaded automatically.
_loadSceneByUuid
(
-
uuid
-
[onLaunched
]
-
[onUnloaded
]
-
[dontRunScene
]
)
private
- uuid
- [onLaunched ]
- [onUnloaded ]
- [dontRunScene ]
resume ( )
Resume game logic execution after pause, if the current scene is not paused, nothing will happen.
setDepthTest
(
-
on
)
- on
Enables or disables WebGL depth test.
Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js
name | type | description |
---|---|---|
on
|
Boolean |
setClearColor
(
-
clearColor
)
- clearColor
set color for clear screen.
Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js
name | type | description |
---|---|---|
clearColor
|
Color |
setProjection
(
-
projection
)
- projection
Sets an OpenGL projection.
Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
name | type | description |
---|---|---|
projection
|
Number |
setViewport ( )
Update the view port.
Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
getProjection ( ) Number
Sets an OpenGL projection.
Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
returns:
setAlphaBlending
(
-
on
)
- on
Enables/disables OpenGL alpha blending.
Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js.
name | type | description |
---|---|---|
on
|
Boolean |
isSendCleanupToScene ( ) Boolean
Returns whether or not the replaced scene will receive the cleanup message.
If the new scene is pushed, then the old scene won't receive the "cleanup" message.
If the new scene replaces the old one, the it will receive the "cleanup" message.
returns:
getRunningScene ( ) Scene private
Returns current render Scene, normally you will never need to use this API.
In most case, you probably want to use getScene
instead.
returns:
getScene ( ) Scene
Returns current logic Scene.
returns:
examples:
// This will help you to get the Canvas node in scene
cc.director.getScene().getChildByName('Canvas');
isDisplayStats ( ) Boolean
Returns whether or not to display the FPS informations.
returns:
setDisplayStats
(
-
displayStats
)
- displayStats
Sets whether display the FPS on the bottom-left corner.
name | type | description |
---|---|---|
displayStats
|
Boolean |
isNextDeltaTimeZero ( ) Boolean
Returns whether next delta time equals to zero.
returns:
getTotalFrames ( ) Number
Returns how many frames were called since the director started.
returns:
getScheduler ( ) Scheduler
Returns the cc.Scheduler associated with this director.
returns:
setScheduler
(
-
scheduler
)
- scheduler
Sets the cc.Scheduler associated with this director.
name | type | description |
---|---|---|
scheduler
|
Scheduler |
getActionManager ( ) ActionManager
Returns the cc.ActionManager associated with this director.
returns:
setActionManager
(
-
actionManager
)
- actionManager
Sets the cc.ActionManager associated with this director.
name | type | description |
---|---|---|
actionManager
|
ActionManager |
getCollisionManager ( ) CollisionManager
Returns the cc.CollisionManager associated with this director.
returns:
getPhysicsManager ( ) PhysicsManager
Returns the cc.PhysicsManager associated with this director.
returns:
on
(
-
type
-
callback
-
[target
]
-
[useCapture
=false]
)
Function
- type
- callback
- [target ]
- [useCapture =false]
Inherited from EventTarget:
Register an callback of a specific event type on the EventTarget.
name | type | description | |
---|---|---|---|
type
|
String |
A string representing the event type to listen for. |
|
callback
|
Function |
The callback that will be invoked when the event is dispatched. The callback is ignored if it is a duplicate (the callbacks are unique).
|
|
target
optional
|
Object |
The target to invoke the callback, can be null |
|
useCapture
optional
|
Boolean | false |
When set to true, the capture argument prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false, callback will NOT be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked when event's eventPhase attribute value is AT_TARGET. |
returns:
examples:
node.on(cc.Node.EventType.TOUCH_END, function (event) {
cc.log("this is callback");
}, node);
off
(
-
type
-
callback
-
[target
]
-
[useCapture
=false]
)
- type
- callback
- [target ]
- [useCapture =false]
Inherited from EventTarget:
Removes the callback previously registered with the same type, callback, target and or useCapture.
name | type | description | |
---|---|---|---|
type
|
String |
A string representing the event type being removed. |
|
callback
|
Function |
The callback to remove. |
|
target
optional
|
Object |
The target to invoke the callback, if it's not given, only callback without target will be removed |
|
useCapture
optional
|
Boolean | false |
Specifies whether the callback being removed was registered as a capturing callback or not. If not specified, useCapture defaults to false. If a callback was registered twice, one with capture and one without, each must be removed separately. Removal of a capturing callback does not affect a non-capturing version of the same listener, and vice versa. |
examples:
// register touchEnd eventListener
var touchEnd = node.on(cc.Node.EventType.TOUCH_END, function (event) {
cc.log("this is callback");
}, node);
// remove touchEnd eventListener
node.off(cc.Node.EventType.TOUCH_END, touchEnd, node);
targetOff
(
-
target
)
- target
Inherited from EventTarget:
Removes all callbacks previously registered with the same target (passed as parameter). This is not for removing all listeners in the current event target, and this is not for removing all listeners the target parameter have registered. It's only for removing all listeners (callback and target couple) registered on the current event target by the target parameter.
name | type | description |
---|---|---|
target
|
Object |
The target to be searched for all related listeners |
once
(
-
type
-
callback
-
[target
]
-
[useCapture
=false]
)
- type
- callback
- [target ]
- [useCapture =false]
Inherited from EventTarget:
Register an callback of a specific event type on the EventTarget, the callback will remove itself after the first time it is triggered.
name | type | description | |
---|---|---|---|
type
|
String |
A string representing the event type to listen for. |
|
callback
|
Function |
The callback that will be invoked when the event is dispatched. The callback is ignored if it is a duplicate (the callbacks are unique).
|
|
target
optional
|
Object |
The target to invoke the callback, can be null |
|
useCapture
optional
|
Boolean | false |
When set to true, the capture argument prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false, callback will NOT be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked when event's eventPhase attribute value is AT_TARGET. |
examples:
node.once(cc.Node.EventType.TOUCH_END, function (event) {
cc.log("this is callback");
}, node);
dispatchEvent
(
-
event
)
- event
Inherited from EventTarget:
Dispatches an event into the event flow. The event target is the EventTarget object upon which the dispatchEvent() method is called.
name | type | description |
---|---|---|
event
|
Event |
The Event object that is dispatched into the event flow |
emit
(
-
message
-
[detail
]
)
- message
- [detail ]
Inherited from EventTarget:
Send an event to this object directly, this method will not propagate the event to any other objects. The event will be created from the supplied message, you can get the "detail" argument from event.detail.
name | type | description |
---|---|---|
message
|
String |
the message to send |
detail
optional
|
Any |
whatever argument the message needs |
There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index
Events
cc.Director.EVENT_PROJECTION_CHANGED
The event projection changed of cc.Director.
Event Payload:
-
event
Event.EventCustom
examples:
cc.director.on(cc.Director.EVENT_PROJECTION_CHANGED, function(event) {
cc.log("Projection changed.");
});
cc.Director.EVENT_BEFORE_SCENE_LOADING
The event which will be triggered before loading a new scene.
Event Payload:
-
event
Event.EventCustom-
detail
Vec2The loading scene name
-
cc.Director.EVENT_AFTER_SCENE_LAUNCH
The event which will be triggered after launching a new scene.
Event Payload:
-
event
Event.EventCustom-
detail
Vec2New scene which is launched
-
cc.Director.EVENT_BEFORE_UPDATE
The event which will be triggered at the beginning of every frame.
Event Payload:
-
event
Event.EventCustom
cc.Director.EVENT_AFTER_UPDATE
The event which will be triggered after engine and components update logic.
Event Payload:
-
event
Event.EventCustom
cc.Director.EVENT_BEFORE_VISIT
The event which will be triggered before visiting the rendering scene graph.
Event Payload:
-
event
Event.EventCustom
cc.Director.EVENT_AFTER_VISIT
The event which will be triggered after visiting the rendering scene graph, the render queue is ready but not rendered at this point.
Event Payload:
-
event
Event.EventCustom
cc.Director.EVENT_AFTER_DRAW
The event which will be triggered after the rendering process.
Event Payload:
-
event
Event.EventCustom
There are no events that match your current filter settings. You can change your filter settings in the index section on this page. index