Cocos Creator v2.0.7 公测版发布帖(01-02 新增 beta.4)

2.0.5升级2.0.7,子域报错:
Cannot read property ‘_texture’ of undefined;at requestAnimationFrame callback function
TypeError: Cannot read property ‘_texture’ of undefined
at Object.updateRenderData (http://127.0.0.1:10601/game/game_subdomain/cocos2d-js-min.js:1:454562)
at v.133.g.updateRenderData (http://127.0.0.1:10601/game/gamesubdomain/cocos2d-js-min.js:1:442782)
at v.133.g.worldTransform (http://127.0.0.1:10601/game/gamesubdomain/cocos2d-js-min.js:1:442472)
at v.133.g.children (http://127.0.0.1:10601/game/gamesubdomain/cocos2d-js-min.js:1:443385)
at v.133.g.render (http://127.0.0.1:10601/game/gamesubdomain/cocos2d-js-min.js:1:442944)
at v.133.g.color (http://127.0.0.1:10601/game/gamesubdomain/cocos2d-js-min.js:1:442594)
at v.133.g.worldTransform (http://127.0.0.1:10601/game/gamnesubdomain/cocos2d-js-min.js:1:442472)
at v.133.g.children (http://127.0.0.1:10601/game/gamesubdomain/cocos2d-js-min.js:1:443385)
at v.133.g.render (http://127.0.0.1:10601/game/gamesubdomain/cocos2d-js-min.js:1:442944)

另外构建时IDE报错:Error: ipc failed to send, panel not found. panel: cocos-services, message: before-change-files
不知道两者间是否有关联

不能降级

版本不能降级

我试过可以降级的,降级后找到fire文件把场景的scale z改成1,然后点击事件会失效,重新拖一次就ok了

1赞

测试环境:设备:iPad 系统版本:11.3.1,运行时间10多分钟,添加数量:297个


demo.part4.rar (1.4 MB)
demo.part6.rar (246.4 KB)
demo.part3.rar (1.4 MB)
demo.part1.rar (1.4 MB)
demo.part2.rar (1.4 MB)
demo.part5.rar (1.4 MB)

请问,这次 2.0.7 带来的优化和改进、是否会包含在 2.1.1 中?

动画编辑器提个BUG。
动画关键帧移动会导致缓动效果重置。

1赞

用文本文件打开你的场景,50 60行左右 有个scale,把z的属性设置成1 关掉creator 全部退出后打开即可

当然会

override不起作用了吗?

cc.Class({    
    extends: cc.Button,

    properties: {
        transition: {
            override: true,
            default: cc.Button.Transition.SCALE,
            tooltip: CC_DEV && 'i18n:COMPONENT.button.transition',
            type: cc.Button.Transition,
            animatable: false
        },
    },
})

在2.0.7中报错:

Can not declare buttonFun.transition, it is already defined in the prototype of buttonFun

之前的版本都是正常的

facebook instant game 在messenger环境中editbox输入时,placeholder不会隐藏。在网页中正常

transition 在 2.0.7 变成 getset 了,无法被 default override。你想要修改 transition 的哪个行为?

@jare 这个崩溃能在下一个版本能修复吗?

@jare 你好,我们发现 2.0 的 project setting 设置自定义引擎之后,无法在自定义引擎中生成 cache 目录,导致无法编译

引擎修改后,需要重启一下编辑器才行

Bug反馈,版本v2.0.7-alpha.6 @jare
使用两个相机,MainCamera显示场景层,UICamera显示UI层,移动MainCamera后,UI显示也会被移动
在Web,微信小程序编辑器,微信真机都会出现
v2.0.5版本不存在这个问题

Bug2 i18n插件失效
load script […/…/…/packages/i18n/runtime-scripts/LanguageData] failed : Error: Cannot find module ‘…/…/…/packages/i18n/runtime-scripts/LanguageData’
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename [as _resolveFilenameVendor] (C:\CocosCreator_v2.0.7-alpha\CocosCreator_v2.0.7-alpha.6_20181224_win\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.s._resolveFilename (C:\CocosCreator_v2.0.7-alpha\CocosCreator_v2.0.7-alpha.6_20181224_win\resources\app.asar\editor\page\project-scripts.js:1:941)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.cc.require (C:\CocosCreator_v2.0.7-alpha\CocosCreator_v2.0.7-alpha.6_20181224_win\resources\app.asar\editor\page\project-scripts.js:1:589)
at G:\GitLab\Client_Beta\temp\quick-scripts\assets\script\frame\Config.js:1:354
at __define (G:\GitLab\Client_Beta\temp\quick-scripts\assets\script\frame\Config.js:6:12)
at G:\GitLab\Client_Beta\temp\quick-scripts\assets\script\frame\Config.js:104:13

能提供详细的环境就更好了。。。有可能是 cullingMask 没有同步更新导致的,敢问你的 UI group 是动态调整的嘛?:slightly_smiling:

@jare 这个问题怎么样了,有跟进吗?

游戏中大多时候用的是SCALE,想改成默认的,不用每次再去改了,已经改为__preload中设置了

是动态设置group,
UI的Prefab是 Default层,在Instance后设置为UI Group
场景的相机也是在加载场景后设置cullingMask的为忽略UI Group的

1赞