【私货分享】改造 Creator 预览网页,显示实时场景树、节点信息 20190201更新

暗黑主题我挺喜欢的,但是这个主题看不清哪个节点的active为false,颜色都一样的

楼主犀利,这种工具对开发调试真是起到很大作用,希望有一天cocos也能像unity一样,在编辑器中可以查看预览,在编辑器中可以实时看到节点更新和运行时编辑

楼上的大佬们如果有出现图片上的错误基本上应该是路径需要做调整

克隆下来的会是
ccc-devtools-master资料夹
修正成
ccc-devtools就可以了
并且index.jade也要用include ./ccc-devtools-master/index.html

报了个错, 引擎 2.1.2 版本

这个场景树跑到画布里去了该怎么整呀

点赞。。

CocosCreator1.8.2版本Drawcall显示为NaN
修复方法 cc-devtools/stats/Stats.js 中cc.renderer.drawCalls前增加cc.g_NumberOfDraws ||

   function getDrawcalls() {
        if (window.cc) {
            return cc.g_NumberOfDraws || cc.renderer.drawCalls;
        } else {
            return Infinity;
        }
    }

楼主后期还有什么功能更新计划吗

等3D出来可能会改一下属性面板,其他功能暂时还没计划

很赞的插件

大神!膜拜!

mark!

mark

CocosCreator_2.0.10\resources\static\preview-templates\index.jade:38
36| div#recompiling
37| span Recompiling scripts, please wait for refresh…

38| include ./ccc-devtools/index.html
39|
40| script(type=‘text/javascript’ charset=‘utf-8’ src=‘settings.js’)
41| script(type=‘text/javascript’ charset=‘utf-8’ src=‘app/editor/static/preview-templates/modular.js’)

Invalid indentation, you can use tabs or spaces but not both
at Lexer.indent (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\lexer.js:790:15)
at Lexer.next (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\lexer.js:941:15)
at Lexer.lookahead (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\lexer.js:113:46)
at Parser.lookahead (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\parser.js:102:23)
at Parser.peek (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\parser.js:79:17)
at Parser.tag (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\parser.js:832:30)
at Parser.parseTag (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\parser.js:759:17)
at Parser.parseExpr (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\parser.js:211:21)
at Parser.block (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\parser.js:729:25)
at Parser.tag (D:\CocosCreator_2.0.10\resources\app.asar\node_modules\jade\lib\parser.js:838:24)

用tab健与上面对齐

如果不行就用下面的文件替换index.jade.zip (1.4 KB)

谢谢,可能是编辑工具的问题,替换了后可以了

Mark

求助,这种情况要怎么办,只能横向拉伸,纵向拉伸没有用

creator2.2版本可以用么?

1赞

一样的情况,使用版本2.1.4