mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
4 lines
154 B
JavaScript
4 lines
154 B
JavaScript
----------------------------------------------------
|
|
//get a SpriteFrame by name
|
|
var frame = cc.spriteFrameCache.getSpriteFrame("grossini_dance_01.png");
|