-
cc Modules
properties
methods
- _initDebugSetting
- error
- warn
- log
- info
- speed
- follow
- cardinalSplineTo
- 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
- find
- isChildClassOf
- Class
- _isCCClass
- setAccelerometerEnabled
- setAccelerometerInterval
- isValid
- deserialize
- instantiate
- 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
- rectUnion
- V3F_C4B_T2F_QuadZero
- V3F_C4B_T2F_QuadCopy
- V3F_C4B_T2F_QuadsCopy
- v2
- p
- pointEqualToPoint
-
js Modules
-
sp Modules
properties
-
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
- affineTransformTranslate
- affineTransformScale
- affineTransformRotate
- affineTransformConcat
- affineTransformConcatIn
- affineTransformEqualToTransform
- affineTransformInvert
-
cc.Animation Classes
properties
methods
-
cc.AnimationClip Classes
properties
methods
-
cc.AnimationState Classes
-
cc.Asset Classes
properties
methods
-
cc.AssetLibrary Classes
properties
methods
-
cc.AssetTable Classes
methods
-
cc.AudioClip Classes
-
cc.AudioSource Classes
properties
- isPlaying
- clip
- volume
- mute
- loop
- playOnLoad
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- play
- stop
- pause
- resume
- rewind
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.BitmapFont Classes
-
cc.BlendFunc Classes
methods
-
cc.Button Classes
properties
- interactable
- transition
- normalColor
- pressedColor
- hoverColor
- disabledColor
- duration
- normalSprite
- pressedSprite
- hoverSprite
- disabledSprite
- target
- clickEvents
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.CallbacksInvoker Classes
-
cc.Canvas Classes
properties
- instance
- designResolution
- fitHeight
- fitWidth
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.CoffeeScript Classes
properties
methods
-
cc.Color Classes
-
cc.Component Classes
properties
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _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_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
methods
- convertToGL
- convertToUI
- getContentScaleFactor
- getNotificationNode
- getWinSize
- getWinSizeInPixels
- getVisibleSize
- getVisibleOrigin
- getZEye
- pause
- pushScene
- runScene
- runScene
- loadScene
- _loadSceneByUuid
- resume
- setDepthTest
- setClearColor
- setOpenGLView
- setProjection
- setViewport
- getOpenGLView
- getProjection
- setAlphaBlending
- isSendCleanupToScene
- getRunningScene
- getScene
- getAnimationInterval
- isDisplayStats
- setDisplayStats
- getSecondsPerFrame
- isNextDeltaTimeZero
- isPaused
- getTotalFrames
- getScheduler
- setScheduler
- getActionManager
- setActionManager
- getAnimationManager
- getDeltaTime
-
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
- editingDidBegin
- textChanged
- editingDidEnded
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _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
methods
-
cc.Event.EventTouch Classes
properties
methods
-
cc.EventListener Classes
properties
methods
-
cc.EventTarget Classes
-
cc.FiniteTimeAction Classes
-
cc.Font Classes
-
cc.FontDefinition Classes
methods
-
cc.Game Classes
-
cc.Label Classes
properties
- string
- horizontalAlign
- verticalAlign
- fontSize
- lineHeight
- overFlow
- enableWrapText
- file
- isSystemFontUsed
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Layout Classes
properties
- type
- resizeMode
- cellSize
- startAxis
- padding
- spacingX
- spacingY
- verticalDirection
- horizontalDirection
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.LoadingItems Classes
properties
methods
-
cc.Mask Classes
properties
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Node Classes
properties
- active
- activeInHierarchy
- _components
- _prefab
- _persistNode
- __eventTargets
- name
- parent
- uuid
- skewX
- skewY
- zIndex
- rotation
- rotationX
- rotationY
- scaleX
- scaleY
- x
- y
- children
- childrenCount
- anchorX
- anchorY
- width
- height
- _ignoreAnchor
- tag
- opacity
- cascadeOpacity
- color
- _sizeProvider
- position
- scale
- _name
- _objFlags
- isValid
events
- position-changed
- rotation-changed
- scale-changed
- size-changed
- anchor-changed
- color-changed
- opacity-changed
- child-added
- child-removed
- child-reorder
- active-in-hierarchy-changed
- touchstart
methods
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- addComponent
- _addComponentAt
- removeComponent
- _getDependComponent
- on
- off
- targetOff
- runAction
- stopAllActions
- stopAction
- stopActionByTag
- getActionByTag
- getNumberOfRunningActions
- attr
- setGlobalZOrder
- getGlobalZOrder
- 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
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.OriginalContainer Classes
-
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
methods
-
cc.Pipeline Classes
-
cc.Pipeline.Downloader Classes
methods
-
cc.Pipeline.Loader Classes
methods
-
cc.Playable Classes
-
cc.Prefab Classes
properties
methods
-
cc.ProgressBar Classes
properties
- barSprite
- mode
- totalLength
- progress
- reverse
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.ProportionalToFrame Classes
-
cc.ProportionalToWindow Classes
-
cc.Quad2 Classes
-
cc.Quad3 Classes
methods
-
cc.RawAsset Classes
-
cc.Rect Classes
-
cc.ResolutionPolicy Classes
-
cc.Scene Classes
properties
methods
-
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
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- scrollToBottom
- scrollToTop
- scrollToLeft
- scrollToRight
- scrollToTopLeft
- scrollToTopRight
- scrollToBottomLeft
- scrollToBottomRight
- scrollToPercentHorizontal
- scrollTo
- scrollToPercentVertical
- setContentPosition
- getContentPosition
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Scrollbar Classes
properties
- handle
- direction
- enableAutoHide
- autoHideTime
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Size Classes
-
cc.Sprite Classes
properties
- spriteFrame
- type
- fillType
- fillCenter
- fillStart
- fillRange
- trim
- srcBlendFactor
- dstBlendFactor
- sizeMode
- _sgNode
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- setVisible
- getOriginalSize
- setInsetLeft
- getInsetLeft
- setInsetTop
- getInsetTop
- setInsetRight
- getInsetRight
- setInsetBottom
- getInsetBottom
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.SpriteAtlas Classes
-
cc.SpriteFrame Classes
properties
methods
-
cc.TTFFont Classes
properties
methods
-
cc.Tex2F Classes
-
cc.TextAsset Classes
properties
methods
-
cc.Texture2D Classes
properties
methods
-
cc.TextureAtlas Classes
properties
methods
- TextureAtlas
- 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
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- getLayerName
- SetLayerName
- getProperty
- getPositionAt
- removeTileAt
- setTileGID
- getTileGIDAt
- getTileAt
- releaseMap
- setContentSize
- getTexture
- setTexture
- getLayerSize
- setLayerSize
- getMapTileSize
- setMapTileSize
- getTiles
- setTiles
- getTileset
- setTileset
- getLayerOrientation
- setLayerOrientation
- getProperties
- setProperties
- _createSgNode
- _initSgNode
- _removeSgNode
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.TiledMap Classes
properties
- tmxFile
- mapLoaded
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- getMapSize
- setMapSize
- getTileSize
- setTileSize
- getMapOrientation
- setMapOrientation
- getObjectGroups
- setObjectGroups
- getProperties
- setProperties
- allLayers
- getLayer
- getObjectGroup
- getProperty
- getPropertiesForGID
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc.Touch 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.View Classes
methods
- setTargetDensityDPI
- getTargetDensityDPI
- resizeWithBrowserSize
- setResizeCallback
- adjustViewPort
- enableRetina
- isRetinaEnabled
- enableAutoFullScreen
- isAutoFullScreenEnabled
- isOpenGLReady
- setIMEKeyboardState
- setContentTranslateLeftTop
- getContentTranslateLeftTop
- setCanvasSize
- getCanvasSize
- 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.WebGLColor Classes
-
cc.Widget Classes
properties
- isAlignTop
- isAlignVerticalCenter
- isAlignBottom
- isAlignLeft
- isAlignHorizontalCenter
- isAlignRight
- isStretchWidth
- isStretchHeight
- top
- bottom
- left
- right
- isAbsoluteTop
- isAbsoluteBottom
- isAbsoluteLeft
- isAbsoluteRight
- isAlignOnce
- _alignFlags
- node
- uuid
- _enabled
- enabled
- enabledInHierarchy
- _isOnLoadCalled
- __eventTargets
- _name
- _objFlags
- name
- isValid
methods
- update
- lateUpdate
- onLoad
- start
- onEnable
- onDisable
- onDestroy
- onFocusInEditor
- onLostFocusInEditor
- addComponent
- getComponent
- getComponents
- getComponentInChildren
- getComponentsInChildren
- _getLocalBounds
- onRestore
- schedule
- scheduleOnce
- unschedule
- unscheduleAllCallbacks
- destroy
- realDestroyInEditor
- _destruct
- _onPreDestroy
- _serialize
- _deserialize
-
cc._ComponentAttributes Classes
-
cc.audioEngine Classes
-
cc.eventManager Classes
-
cc.inputManager Classes
-
cc.loader Classes
-
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_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
- IOS
- 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
- browserType
- browserVersion
- windowPixelResolution
- localStorage
- capabilities
methods
-
cc.textureCache Classes
-
cc.url Classes
-
cc.visibleRect Classes
-
js.array Classes
-
sp.Skeleton Classes
properties
- skeletonData
- defaultSkin
- defaultAnimation
- animation
- _defaultSkinIndex
- loop
- timeScale
- debugSlots
- debugBones
methods
-
sp.SkeletonData Classes
properties
methods
-
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.EditBox.InputFlag Enums
-
cc.EditBox.InputMode 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.Overflow Enums
-
cc.Label.TextAlignment Enums
-
cc.Label.Type Enums
-
cc.Layout.AxisDirection Enums
-
cc.Layout.ResizeMode Enums
-
cc.Layout.Type 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
- DEVICE_ORIENTATION_PORTRAIT
- DEVICE_ORIENTATION_LANDSCAPE_LEFT
- DEVICE_ORIENTATION_PORTRAIT_UPSIDE_DOWN
- DEVICE_ORIENTATION_LANDSCAPE_RIGHT
- DEVICE_MAX_ORIENTATIONS
- 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_POSITION_TEXTURECOLORALPHATEST
- SHADER_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
-
cc.Node.EventType Enums
-
cc.ProgressBar.Mode Enums
-
cc.Scrollbar.Direction Enums
-
cc.Sprite.FillType Enums
-
cc.Sprite.SizeMode Enums
-
cc.Sprite.SpriteType Enums
-
cc.Texture2D.WrapMode Enums
-
cc.TiledMap.Orientation Enums
-
cc.WrapMode Enums
-
sp.AnimationEventType Enums
properties
methods
properties
properties
properties
properties
properties
properties
properties
properties
properties
methods
properties
properties
properties
properties
properties
properties
properties
Enum Macro
Predefined constants
BLEND_DST Number readOnly
default gl blend dst function. Compatible with premultiplied alpha images.
WEB_ORIENTATION_PORTRAIT Number readOnly
Device oriented vertically, home button on the bottom (UIDeviceOrientationPortrait)
WEB_ORIENTATION_LANDSCAPE_LEFT Number readOnly
Device oriented horizontally, home button on the right (UIDeviceOrientationLandscapeLeft)
WEB_ORIENTATION_PORTRAIT_UPSIDE_DOWN Number readOnly
Device oriented vertically, home button on the top (UIDeviceOrientationPortraitUpsideDown)
WEB_ORIENTATION_LANDSCAPE_RIGHT Number readOnly
Device oriented horizontally, home button on the left (UIDeviceOrientationLandscapeRight)
DEVICE_ORIENTATION_PORTRAIT Number readOnly
Device oriented vertically, home button on the bottom (UIDeviceOrientationPortrait)
DEVICE_ORIENTATION_LANDSCAPE_LEFT Number readOnly
Device oriented horizontally, home button on the right (UIDeviceOrientationLandscapeLeft)
DEVICE_ORIENTATION_PORTRAIT_UPSIDE_DOWN Number readOnly
Device oriented vertically, home button on the top (UIDeviceOrientationPortraitUpsideDown)
DEVICE_ORIENTATION_LANDSCAPE_RIGHT Number readOnly
Device oriented horizontally, home button on the left (UIDeviceOrientationLandscapeRight)
DEVICE_MAX_ORIENTATIONS Number readOnly
In browsers, we only support 2 orientations by change window size.
FIX_ARTIFACTS_BY_STRECHING_TEXEL Number readOnly
If enabled, the texture coordinates will be calculated by using this formula:
- texCoord.left = (rect.x2+1) / (texture.wide2);
- texCoord.right = texCoord.left + (rect.width2-2)/(texture.wide2);
The same for bottom and top.
This formula prevents artifacts by using 99% of the texture.
The "correct" way to prevent artifacts is by using the spritesheet-artifact-fixer.py or a similar tool.
Affected nodes:
- _ccsg.Sprite / cc.SpriteBatchNode and subclasses: cc.LabelBMFont, _ccsg.TMXTiledMap
- cc.LabelAtlas
- cc.QuadParticleSystem
- cc.TileMap
To enabled set it to 1. Disabled by default.
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
DIRECTOR_STATS_POSITION Vec2 readOnly
Position of the FPS (Default: 0,0 (bottom-left corner))
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
DIRECTOR_FPS_INTERVAL Number readOnly
Seconds between FPS updates.
0.5 seconds, means that the FPS number will be updated every 0.5 seconds.
Having a bigger number means a more reliable FPS
Default value: 0.1f
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
COCOSNODE_RENDER_SUBPIXEL Number readOnly
If enabled, the ccsg.Node objects (_ccsg.Sprite, _ccsg.Label,etc) will be able to render in subpixels.
If disabled, integer pixels will be used.
To enable set it to 1. Enabled by default.
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
SPRITEBATCHNODE_RENDER_SUBPIXEL Number readOnly
If enabled, the _ccsg.Sprite objects rendered with cc.SpriteBatchNode will be able to render in subpixels.
If disabled, integer pixels will be used.
To enable set it to 1. Enabled by default.
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
OPTIMIZE_BLEND_FUNC_FOR_PREMULTIPLIED_ALPHA Number readOnly
If most of your images have pre-multiplied alpha, set it to 1 (if you are going to use .PNG/.JPG file images).
Only set to 0 if ALL your images by-pass Apple UIImage loading system (eg: if you use libpng or PVR images)
To enable set it to a value different than 0. Enabled by default.
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
TEXTURE_ATLAS_USE_TRIANGLE_STRIP Number readOnly
Use GL_TRIANGLE_STRIP instead of GL_TRIANGLES when rendering the texture atlas.
It seems it is the recommend way, but it is much slower, so, enable it at your own risk
To enable set it to a value different than 0. Disabled by default.
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
TEXTURE_ATLAS_USE_VAO Number readOnly
By default, cc.TextureAtlas (used by many cocos2d classes) will use VAO (Vertex Array Objects).
Apple recommends its usage but they might consume a lot of memory, specially if you use many of them.
So for certain cases, where you might need hundreds of VAO objects, it might be a good idea to disable it.
To disable it set it to 0. disable by default.(Not Supported on WebGL)
To modify it, in Web engine please refer to CCMacro.js, in JSB please refer to CCConfig.h
USE_LA88_LABELS Number readOnly
If enabled, it will use LA88 (Luminance Alpha 16-bit textures) for CCLabelTTF objects.
If it is disabled, it will use A8 (Alpha 8-bit textures).
LA88 textures are 6% faster than A8 textures, but they will consume 2x memory.
This feature is enabled by default.
SPRITE_DEBUG_DRAW Number readOnly
If enabled, all subclasses of _ccsg.Sprite will draw a bounding box
Useful for debugging purposes only. It is recommend to leave it disabled.
To enable set it to a value different than 0. Disabled by default:
0 -- disabled
1 -- draw bounding box
2 -- draw texture box
LABELBMFONT_DEBUG_DRAW Number readOnly
If enabled, all subclasses of cc.LabelBMFont will draw a bounding box
Useful for debugging purposes only. It is recommend to leave it disabled.
To enable set it to a value different than 0. Disabled by default.
LABELATLAS_DEBUG_DRAW Number readOnly
If enabled, all subclasses of cc.LabelAtlas will draw a bounding box
Useful for debugging purposes only. It is recommend to leave it disabled.
To enable set it to a value different than 0. Disabled by default.
ENABLE_STACKABLE_ACTIONS Number readOnly
If enabled, actions that alter the position property (eg: CCMoveBy, CCJumpBy, CCBezierBy, etc..) will be stacked.
If you run 2 or more 'position' actions at the same time on a node, then end position will be the sum of all the positions.
If disabled, only the last run action will take effect.
ENABLE_GL_STATE_CACHE Number readOnly
If enabled, cocos2d will maintain an OpenGL state cache internally to avoid unnecessary switches.
In order to use them, you have to use the following functions, instead of the the GL ones:
- cc.gl.useProgram() instead of glUseProgram()
- cc.gl.deleteProgram() instead of glDeleteProgram()
- cc.gl.blendFunc() instead of glBlendFunc()
If this functionality is disabled, then cc.gl.useProgram(), cc.gl.deleteProgram(), cc.gl.blendFunc() will call the GL ones, without using the cache.
It is recommend to enable whenever possible to improve speed.
If you are migrating your code from GL ES 1.1, then keep it disabled. Once all your code works as expected, turn it on.
BLEND_SRC Number readOnly
default gl blend src function. Compatible with premultiplied alpha images.
There are no properties that match your current filter settings. You can change your filter settings in the index section on this page. index