cocos creator 怎么实现:不使用图片通过代码去创建一个单色精灵?

我想实现一个单色精灵,有没有办法实现?类似于以前的:LayerColor

自定义一个 RenderComponent,官文有