Sprite.SizeMode
Enum
Sprite Size can track trimmed size, raw size or none.
Index
CUSTOM
TRIMMED
RAW
Details
CUSTOM
Use the customized node size.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCSprite.js:89 |
TRIMMED
Match the trimmed size of the sprite frame automatically.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCSprite.js:95 |
RAW
Match the raw size of the sprite frame automatically.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCSprite.js:101 |