Label.CacheMode Enum
Module: cc
Enum for cache mode.
Index
NONEBITMAPCHAR
Details
NONE
Do not do any caching.
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/components/CCLabel.js:137 |
BITMAP
In BITMAP mode, cache the label as a static image and add it to the dynamic atlas for batch rendering, and can batching with Sprites using broken images.
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/components/CCLabel.js:142 |
CHAR
In CHAR mode, split text into characters and cache characters into a dynamic atlas which the size of 2048*2048.
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/components/CCLabel.js:147 |