I am trying to draw a simple rect, i created a class that get graphics component anb simply call fillRect.
Unfortunately nothing happens, no error no filled screen.
This code worked good on Cocos Creator 2.x.
> if ( this.graphics == null )
return; this.graphics.fillRect(0, 0, 720, 1280);
Is this a bug?
1 post - 1 participant