Cocos Creator v1.7.0 内测版发布帖(11月17日更新 rc.2)

@dumganhar

用examplecase能复现么?

这个问题昨天应该就修复了,PR地址为:

https://github.com/cocos-creator/cocos2d-x-lite/pull/891

你参照修改一下。

试了


var glTexture = texture._gl;
var glTexture = texture._glID;
var glTexture = texture.url;

都抛出一样的Error:

Simulator: ERROR (/Users/nantas/fireball-x/cxp/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp, 2099): wrong number of arguments: 1, was expecting 0

没有人用到sampler2D吗:joy:

谢谢反馈,你先试试 glTexture = CC_JSB ? texture.getName() : texture._glID

1赞

新建例子 谷歌浏览器 调试 不设置断点 随便操作几秒就
错误 无法连接到运行中的进程,将在10000毫秒后超时 - (原因:已收到来自目标应用的回应,但未找到目标页面)
闪退了
新建hello world 新建场景断点cc.director.loadScene(’*****’); cocos2d-js-for-preview.js找不到。
vs配置
{
“version”: “1.4.0”,
“configurations”: [
{
“name”: “Creator Debug: Launch Chrome”,
“type”: “chrome”,
“request”: “launch”,
“url”: “http://localhost:7456”,
“sourceMaps”: true,
“userDataDir”: “{workspaceRoot}/.vscode/chrome", "diagnosticLogging": false, "pathMapping": { "/preview-scripts/assets": "{workspaceRoot}/temp/quick-scripts/assets”,
“/”: “${workspaceRoot}”
}
}
]
}
有提示diagnosticLogging已过时。

我们之后会把 getName 加回来,不过你用 _glID 应该是可以的

1赞

模拟器应该没有 _glID

1赞

我们现在不支持用VS Code调试的,亲。
请直接用谷歌浏览器啊。

谢谢 @jare 大神,

不过 texture.getName() 这个方法, 我看源码里已经移除了
所以依然会抛出 getName is not a function 的错误

谢谢 @panda 大神,了解了

不过模拟器里的确如Jare大所言,_glID是空值

那么我就等待下个版本了,谢谢

额 这样啊 我用mac 谷歌浏览器打开这个 都是显示

chrome-devtools://devtools/bundled/inspector.html?v8only=true&ws=192.168.254.47:7456/00010002-0003-4004-8005-000600070008

已经跑网页上了
192.168.254.47:7456这个没错改成本机creator上面到吧 是项目还要绑定吗?

请问你是调试windows还是android?
如果是构建出的windows工程或者win模拟器,直接用127.0.0.1这个地址。
如果是android,请用android设备的IP,调试android的时候,确保构建出的工程中AppDelegate.cpp中
这行为:
jsb_enable_debugger(“0.0.0.0”, 5086); // Enable debugger here

看你的端口号都弄错了,怎么会是7456呢?。。。。

认真再认真地阅读一下:

https://github.com/cocos-creator/cocos2d-x-lite/blob/develop/cocos/scripting/js-bindings/docs/JSB2.0-learning-zh.md#chrome远程调试v8

自己摸索过,实在不行再反馈问题。

1.7跟1.6相比,web运行性能有提升吗?

1.7 web提升不大,主要在jsb上的改进。
web的提升应该在1.8。

期待 1.8 了~

受不了 引擎团队的速度了 太快鸟~~ 好稀饭~~

web mobile也没提升吗?我们是用web mobile然后放到原生webview里面!

帮你强力@jare

属性检查器经常无法更新