Label.CacheMode Enum

Module: cc

Enum for cache mode.

Index

  • NONE
  • BITMAP
  • CHAR

Details

NONE

Do not do any caching.

meta description
Type Number
Defined in cocos2d/core/components/CCLabel.js:139
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:144
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:149

results matching ""

    No results matching ""