CocosCreator 创建纯色精灵(Sprite单色)组件
代码创建let node = new cc.Node('nodeName');let texture = new cc.Texture2D;let spriteFrame = new cc.SpriteFrame;texture.initWithData(new Uint8Array([0, 0, 0]), cc.Texture2D.PixelFormat.RGB888, 1, 1, cc.winSize);spriteFrame.setTexture(texture);spriteFram..
原创
2020-12-17 23:45:14 ·
5717 阅读 ·
0 评论