DynamicAtlasManager
Class
Module: cc.primitive Parent Module: cc
Manager the dynamic atlas.
Index
Properties
enabled
Boolean
Enabled or Disabled dynamic atlas.maxAtlasCount
Number
The maximum number of atlas that can be created.textureBleeding
Boolean
Is enable textureBleeding.textureSize
Number
The size of the atlas that was createdmaxFrameSize
Number
The maximum size of the picture that can be added to the atlas.minFrameSize
Number
The minimum size of the picture that can be added to the atlas.
Methods
insertSpriteFrame
Append a sprite frame into the dynamic atlas.reset
Resets all dynamic atlas, and the existing ones will be destroyed.showDebug
Displays all the dynamic atlas in the current scene, which you can use to view the current atlas state.
Details
Properties
enabled
Enabled or Disabled dynamic atlas.
meta | description |
---|---|
Type | Boolean |
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:41 |
maxAtlasCount
The maximum number of atlas that can be created.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:64 |
textureBleeding
Is enable textureBleeding.
meta | description |
---|---|
Type | Boolean |
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:77 |
textureSize
The size of the atlas that was created
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:91 |
maxFrameSize
The maximum size of the picture that can be added to the atlas.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:104 |
minFrameSize
The minimum size of the picture that can be added to the atlas.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:117 |
Methods
insertSpriteFrame
Append a sprite frame into the dynamic atlas.
meta | description |
---|---|
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:130 |
Parameters
spriteFrame
SpriteFrame
reset
Resets all dynamic atlas, and the existing ones will be destroyed.
meta | description |
---|---|
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:156 |
showDebug
Displays all the dynamic atlas in the current scene, which you can use to view the current atlas state.
meta | description |
---|---|
Defined in | cocos2d/core/renderer/utils/dynamic-atlas/manager.js:180 |
Parameters
show
Boolean