Quantcast
Channel: Cocos中文社区 - 最新帖子
Viewing all articles
Browse latest Browse all 495387

模块设置的问题

$
0
0

报错:Cannot set property 'lineWidth' of null

代码:nodeDebugLine = new cc.Node;
this.node.addChild(nodeDebugLine, 0, "DebugLine" );
let graphics = nodeDebugLine.addComponent(cc.Graphics);
graphics.lineWidth = 4;

想问一下在哪可以看到构建的时候打包了哪些模块? 浏览器上是没问题的 打包出来就报错了,开始是没勾选Graphics ,后面打包的时候勾选上了,还是报错。。。


Viewing all articles
Browse latest Browse all 495387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>