-
- _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
- HashElement
- isChildClassOf
- Class
- _isCCClass
- getInheritanceChain
- setAccelerometerEnabled
- setAccelerometerInterval
- isValid
- deserialize
- instantiate
- find
- color
- colorEqual
- hexToColor
- colorToHex
- Enum
- getList
- 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
- V3F_C4B_T2F_QuadZero
- V3F_C4B_T2F_QuadCopy
- V3F_C4B_T2F_QuadsCopy
- v2
- p
- pointEqualToPoint
-
-
-
-
- init
- loadAllPlugins
- unloadAllPlugins
- getUserPlugin
- getIAPPlugins
- getIAPPlugin
- getSocialPlugin
- getSharePlugin
- getAnalyticsPlugin
- getAdsPlugin
- getPushPlugin
- getRECPlugin
- getCrashPlugin
- getAdTrackingPlugin
- getCustomPlugin
- getCustomParam
- getChannelId
- isAnaylticsEnabled
- setIsAnaylticsEnabled
- end
- getInstance
-
- 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
-
- share
- startRecording
- stopRecording
- setListener
- getListener
- pauseRecording
- resumeRecording
- isAvailable
- isRecording
- showToolBar
- hideToolBar
- showVideoCenter
- enterPlatform
- setMetaData
- isFunctionSupported
- getPluginName
- getPluginVersion
- getSDKVersion
- callFuncWithParam
- callStringFuncWithParam
- callIntFuncWithParam
- callBoolFuncWithParam
- callFloatFuncWithParam
-
- 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
-
- affineTransformMake
- affineTransformClone
- pointApplyAffineTransform
- sizeApplyAffineTransform
- affineTransformMakeIdentity
- rectApplyAffineTransform
- obbApplyAffineTransform
- affineTransformTranslate
- affineTransformScale
- affineTransformRotate
- affineTransformConcat
- affineTransformConcatIn
- affineTransformEqualToTransform
- affineTransformInvert
-
- isPlaying
- clip
- volume
- mute
- loop
- playOnLoad
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- play
- stop
- pause
- resume
- rewind
- getCurrentTime
- setCurrentTime
- getDuration
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- offset
- size
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- interactable
- enableAutoGrayEffect
- transition
- normalColor
- pressedColor
- hoverColor
- disabledColor
- duration
- zoomScale
- normalSprite
- pressedSprite
- hoverSprite
- disabledSprite
- target
- clickEvents
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- instance
- designResolution
- fitHeight
- fitWidth
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- offset
- radius
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- tag
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- 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_COMPONENT_UPDATE
- cc.Director.EVENT_COMPONENT_LATE_UPDATE
- cc.Director.EVENT_AFTER_UPDATE
- cc.Director.EVENT_BEFORE_VISIT
- cc.Director.EVENT_AFTER_VISIT
- cc.Director.EVENT_AFTER_DRAW
- convertToUI
- getWinSize
- getWinSizeInPixels
- getVisibleSize
- getVisibleOrigin
- pause
- runSceneImmediate
- runScene
- loadScene
- preloadScene
- _loadSceneByUuid
- resume
- setDepthTest
- setClearColor
- setProjection
- setViewport
- getProjection
- setAlphaBlending
- isSendCleanupToScene
- getRunningScene
- getScene
- getAnimationInterval
- isDisplayStats
- setDisplayStats
- getSecondsPerFrame
- isNextDeltaTimeZero
- isPaused
- getTotalFrames
- getScheduler
- setScheduler
- getActionManager
- setActionManager
- getCollisionManager
- getDeltaTime
-
- string
- backGroundImage
- returnType
- inputFlag
- inputMode
- fontSize
- lineHeight
- fontColor
- placeholder
- placeholderFontSize
- placeholderFontColor
- maxLength
- stayOnTop
- tabIndex
- editingDidBegin
- textChanged
- editingDidEnded
- editingReturn
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- setFocus
- isFocused
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
-
-
- lineWidth
- lineJoin
- lineCap
- strokeColor
- fillColor
- miterLimit
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- moveTo
- lineTo
- bezierCurveTo
- quadraticCurveTo
- arc
- ellipse
- circle
- rect
- roundRect
- fillRect
- clear
- close
- stroke
- stroke
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- string
- horizontalAlign
- verticalAlign
- actualFontSize
- fontSize
- lineHeight
- overflow
- enableWrapText
- font
- isSystemFontUsed
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- color
- width
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- type
- resizeMode
- cellSize
- startAxis
- padding
- spacingX
- spacingY
- verticalDirection
- horizontalDirection
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- preview
- fadeTime
- minSeg
- stroke
- texture
- color
- fastMode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- reset
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- active
- activeInHierarchy
- _components
- _prefab
- _persistNode
- groupIndex
- group
- name
- parent
- uuid
- skewX
- skewY
- zIndex
- rotation
- rotationX
- rotationY
- scaleX
- scaleY
- x
- y
- children
- childrenCount
- anchorX
- anchorY
- width
- height
- _ignoreAnchor
- tag
- opacity
- cascadeOpacity
- color
- _sgNode
- _sizeProvider
- __eventTargets
- scale
- _name
- _objFlags
- isValid
- position-changed
- size-changed
- anchor-changed
- child-added
- child-removed
- child-reorder
- group-changed
- active-in-hierarchy-changed
- touchstart
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- addComponent
- _addComponentAt
- removeComponent
- _getDependComponent
- on
- off
- targetOff
- runAction
- stopAllActions
- stopAction
- stopActionByTag
- getActionByTag
- getNumberOfRunningActions
- attr
- getScale
- setScale
- getPosition
- setPosition
- getAnchorPoint
- setAnchorPoint
- getAnchorPointInPoints
- getContentSize
- setContentSize
- getBoundingBox
- cleanup
- getChildByTag
- getChildByUuid
- getChildByName
- addChild
- removeFromParent
- removeChild
- removeChildByTag
- removeAllChildren
- getParentToNodeTransform
- getNodeToWorldTransform
- getNodeToWorldTransformAR
- getWorldToNodeTransform
- convertToNodeSpace
- convertToWorldSpace
- convertToNodeSpaceAR
- convertToWorldSpaceAR
- convertTouchToNodeSpace
- convertTouchToNodeSpaceAR
- getNodeToParentTransform
- getNodeToParentTransformAR
- getBoundingBoxToWorld
- getDisplayedOpacity
- getDisplayedColor
- setOpacityModifyRGB
- isOpacityModifyRGB
- getSiblingIndex
- setSiblingIndex
- isChildOf
- sortAllChildren
- getPositionX
- setPositionX
- getPositionY
- setPositionY
- getLocalZOrder
- setLocalZOrder
- isCascadeOpacityEnabled
- setCascadeOpacityEnabled
- setCascadeColorEnabled
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- direction
- scrollThreshold
- indicator
- pageEvents
- content
- horizontal
- vertical
- inertia
- brake
- elastic
- bounceDuration
- horizontalScrollBar
- verticalScrollBar
- scrollEvents
- cancelInnerEvents
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- 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
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- spriteFrame
- direction
- cellSize
- spacing
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- setPageView
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- 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
-
- offset
- points
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- barSprite
- mode
- totalLength
- progress
- reverse
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- string
- horizontalAlign
- fontSize
- maxWidth
- lineHeight
- imageAtlas
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- autoReleaseAssets
- name
- parent
- uuid
- skewX
- skewY
- zIndex
- rotation
- rotationX
- rotationY
- scaleX
- scaleY
- x
- y
- children
- childrenCount
- anchorX
- anchorY
- width
- height
- _ignoreAnchor
- tag
- opacity
- cascadeOpacity
- color
- _sgNode
- _sizeProvider
- __eventTargets
- scale
- _name
- _objFlags
- isValid
- attr
- getScale
- setScale
- getPosition
- setPosition
- getAnchorPoint
- setAnchorPoint
- getAnchorPointInPoints
- getContentSize
- setContentSize
- getBoundingBox
- cleanup
- getChildByTag
- getChildByUuid
- getChildByName
- addChild
- removeFromParent
- removeChild
- removeChildByTag
- removeAllChildren
- getParentToNodeTransform
- getNodeToWorldTransform
- getNodeToWorldTransformAR
- getWorldToNodeTransform
- convertToNodeSpace
- convertToWorldSpace
- convertToNodeSpaceAR
- convertToWorldSpaceAR
- convertTouchToNodeSpace
- convertTouchToNodeSpaceAR
- getNodeToParentTransform
- getNodeToParentTransformAR
- getBoundingBoxToWorld
- getDisplayedOpacity
- getDisplayedColor
- setOpacityModifyRGB
- isOpacityModifyRGB
- getSiblingIndex
- setSiblingIndex
- isChildOf
- sortAllChildren
- getPositionX
- setPositionX
- getPositionY
- setPositionY
- getLocalZOrder
- setLocalZOrder
- isCascadeOpacityEnabled
- setCascadeOpacityEnabled
- setCascadeColorEnabled
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- setTimeScale
- getTimeScale
- update
- scheduleCallbackForTarget
- schedule
- scheduleUpdate
- unschedule
- unscheduleUpdate
- unscheduleAllForTarget
- unscheduleAll
- unscheduleAllWithMinPriority
- isScheduled
- pauseAllTargets
- pauseAllTargetsWithMinPriority
- resumeTargets
- pauseTarget
- resumeTarget
- isTargetPaused
- scheduleUpdateForTarget
- unscheduleCallbackForTarget
- unscheduleUpdateForTarget
- unscheduleAllCallbacksForTarget
- unscheduleAllCallbacks
- unscheduleAllCallbacksWithMinPriority
-
- content
- horizontal
- vertical
- inertia
- brake
- elastic
- bounceDuration
- horizontalScrollBar
- verticalScrollBar
- scrollEvents
- cancelInnerEvents
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- 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
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- handle
- direction
- enableAutoHide
- autoHideTime
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- handle
- direction
- progress
- slideEvents
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- spriteFrame
- type
- fillType
- fillCenter
- fillStart
- fillRange
- trim
- srcBlendFactor
- dstBlendFactor
- sizeMode
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- setInsetLeft
- getInsetLeft
- setInsetTop
- getInsetTop
- setInsetRight
- getInsetRight
- setInsetBottom
- getInsetBottom
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- offset
- tiling
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
-
-
- TextureAtlas
- getTotalQuads
- getCapacity
- getTexture
- setTexture
- setDirty
- isDirty
- getQuads
- setQuads
- initWithFile
- initWithTexture
- updateQuad
- insertQuad
- insertQuads
- insertQuadFromIndex
- removeQuadAtIndex
- removeQuadsAtIndex
- removeAllQuads
- resizeCapacity
- increaseTotalQuadsWith
- moveQuadsFromIndex
- fillWithEmptyQuadsFromIndex
- drawNumberOfQuads
-
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- 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
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- tmxAsset
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- getMapSize
- setMapSize
- getTileSize
- setTileSize
- getMapOrientation
- setMapOrientation
- getObjectGroups
- getProperties
- setProperties
- allLayers
- getLayer
- getObjectGroup
- getProperty
- getPropertiesForGID
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- getPositionOffset
- setPositionOffset
- getProperties
- setProperties
- getGroupName
- setGroupName
- getObject
- getObjects
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- isChecked
- toggleGroup
- checkMark
- checkEvents
- interactable
- enableAutoGrayEffect
- transition
- normalColor
- pressedColor
- hoverColor
- disabledColor
- duration
- zoomScale
- normalSprite
- pressedSprite
- hoverSprite
- disabledSprite
- target
- clickEvents
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- check
- uncheck
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- allowSwitchOff
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- resourceType
- remoteURL
- clip
- currentTime
- keepAspectRatio
- isFullscreen
- videoPlayerEvent
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- play
- resume
- pause
- stop
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- 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
-
- url
- webviewLoadedEvents
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- isAlignTop
- isAlignVerticalCenter
- isAlignBottom
- isAlignLeft
- isAlignHorizontalCenter
- isAlignRight
- isStretchWidth
- isStretchHeight
- top
- bottom
- left
- right
- horizontalCenter
- verticalCenter
- isAbsoluteHorizontalCenter
- isAbsoluteVerticalCenter
- isAbsoluteTop
- isAbsoluteBottom
- isAbsoluteLeft
- isAbsoluteRight
- isAlignOnce
- _alignFlags
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
- update
- lateUpdate
- __preload
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
- 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_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
- kScoreSubmitSucceed
- kScoreSubmitfail
- kAchUnlockSucceed
- kAchUnlockFail
- kSocialSignInSucceed
- kSocialSignInFail
- kSocialSignOutSucceed
- kSocialSignOutFail
- kSocialGetGameFriends
- kSocialExtensionCode
- kSocialGetFriendsInfoSuccess
- kSocialGetFriendsInfoFail
- kSocialAlreadySubscription
- kSocialNoSubscription
- kSocialSubscriptionFail
- 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
- 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
- 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
- USE_LA88_LABELS
- SPRITE_DEBUG_DRAW
- LABELBMFONT_DEBUG_DRAW
- LABELATLAS_DEBUG_DRAW
- ENABLE_STACKABLE_ACTIONS
- ENABLE_GL_STATE_CACHE
- BLEND_SRC
Animation
The animation component is used to play back animations.
Animation provide several events to register:
- play : Emit when egine playing animation
- stop : Emit when stop playing animation
- pause : Emit when pause animation
- resume : Emit when resume animation
- lastframe : If animation repeat coutn is larger than 1, emit when animation play to the last frame
- finished : Emit when finish playing animation
There are no properties that match your current filter settings. You can change your filter settings in the index section on this page. index
play
(
-
[name
]
-
[startTime
]
)
AnimationState
- [name ]
- [startTime ]
Plays an animation and stop other animations.
name
optional
|
String |
The name of animation to play. If no name is supplied then the default animation will be played. |
startTime
optional
|
Number |
play an animation from startTime |
:
The AnimationState of playing animation. In cases where the animation can't be played (ie, there is no default animation or no animation with the specified name), the function will return null.
:
var animCtrl = this.node.getComponent(cc.Animation);
animCtrl.play("linear");
playAdditive
(
-
[name
]
-
[startTime
]
)
AnimationState
- [name ]
- [startTime ]
Plays an additive animation, it will not stop other animations. If there are other animations playing, then will play several animations at the same time.
name
optional
|
String |
The name of animation to play. If no name is supplied then the default animation will be played. |
startTime
optional
|
Number |
play an animation from startTime |
:
The AnimationState of playing animation. In cases where the animation can't be played (ie, there is no default animation or no animation with the specified name), the function will return null.
:
// linear_1 and linear_2 at the same time playing.
var animCtrl = this.node.getComponent(cc.Animation);
animCtrl.playAdditive("linear_1");
animCtrl.playAdditive("linear_2");
stop
(
-
[name
]
)
- [name ]
Stops an animation named name. If no name is supplied then stops all playing animations that were started with this Animation.
Stopping an animation also Rewinds it to the Start.
name
optional
|
String |
The animation to stop, if not supplied then stops all playing animations. |
pause
(
-
[name
]
)
- [name ]
Pauses an animation named name. If no name is supplied then pauses all playing animations that were started with this Animation.
name
optional
|
String |
The animation to pauses, if not supplied then pauses all playing animations. |
resume
(
-
[name
]
)
- [name ]
Resumes an animation named name. If no name is supplied then resumes all paused animations that were started with this Animation.
name
optional
|
String |
The animation to resumes, if not supplied then resumes all paused animations. |
setCurrentTime
(
-
[time
]
-
[name
]
)
- [time ]
- [name ]
getAnimationState
(
-
name
)
AnimationState
- name
Returns the animation state named name. If no animation with the specified name, the function will return null.
name
|
String |
:
addClip
(
-
clip
-
[newName
]
)
AnimationState
- clip
- [newName ]
Adds a clip to the animation with name newName. If a clip with that name already exists it will be replaced with the new clip.
clip
|
AnimationClip |
the clip to add |
newName
optional
|
String |
:
removeClip
(
-
clip
-
force
)
- clip
- force
Remove clip from the animation list. This will remove the clip and any animation states based on it. If there are animation states depand on the clip are playing or clip is defaultClip, it will not delete the clip. But if force is true, then will always remove the clip and any animation states based on it. If clip is defaultClip, defaultClip will be reset to null
clip
|
AnimationClip | |
force
|
Boolean |
If force is true, then will always remove the clip and any animation states based on it. |
sample ( )
Samples animations at the current state.
This is useful when you explicitly want to set up some animation state, and sample it once.
on
(
-
type
-
callback
-
target
-
useCapture
)
- type
- callback
- target
- useCapture
Register animation event callback. The event argumetns will provide the AnimationState which emit the event. When play an animation, will auto register the event callback to the AnimationState, and unregister the event callback from the AnimationState when animation stopped.
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
|
Object |
The target to invoke the callback, can be null |
useCapture
|
Boolean |
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. |
:
onPlay: function (event) {
var state = event.detail; // state instanceof cc.AnimationState
var type = event.type; // type === 'play';
}
// register event to all animation
animation.on('', 'play', this.onPlay, this);
off
(
-
type
-
callback
-
target
-
useCapture
)
- type
- callback
- target
- useCapture
Unregister animation event callback.
type
|
String |
A string representing the event type being removed. |
callback
|
Function |
The callback to remove. |
target
|
Object |
The target to invoke the callback, if it's not given, only callback without target will be removed |
useCapture
|
Boolean |
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. |
:
// unregister event to all animation
animation.off('', 'play', this.onPlay, this);
There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index