Creator 3.0 Graphics not working?

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 ( == null )
return;, 0, 720, 1280);

Is this a bug?

Fixed by changing LAYER to UI_2D

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.