Commit 727cd9af authored by david's avatar david

Merge branch 'fix-loading-canvas' into 'master'

fix: 加载页面去除Canvas绘制

See merge request !1
parents d9c95781 b51b0545
...@@ -27,7 +27,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -27,7 +27,7 @@ export abstract class middleLayerBase extends cc.Component {
const layout = cc.find('middleLayer/layout'); const layout = cc.find('middleLayer/layout');
layout.removeAllChildren(); layout.removeAllChildren();
const canvas = cc.find("Canvas"); //const canvas = cc.find("Canvas");
//const bg = layout.addComponent(cc.Graphics); //const bg = layout.addComponent(cc.Graphics);
//bg.fillRect(-canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height); //bg.fillRect(-canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment