Cocos Creator v2.4.3-rc.7 测试帖(正式版已发)

    let targetTexture = this._targetTexture;
    if (targetTexture) {
        if (CC_EDITOR) {
            height = cc.engine.getDesignResolutionSize().height;
        }
        else {
            height = cc.visibleRect.height;
        }
    }

只需要把这段代码改成

    let targetTexture = this._targetTexture;
    if (targetTexture) {
        height = targetTexture.height;          //设置相机高度,使截图大小变化
    }

就可以了。在以前版本的引擎里面也是这样的。

请看文档:
https://docs.cocos.com/creator/manual/zh/render/camera.html#截取部分区域

如果这样设计的话,_onAlignWithScreen里面根本就没必要判断_targetTexture

来个引擎大佬解答一下嘛

let texture = new cc.RenderTexture();
texture.initWithSize(500, 500);
this.RoleCamera.targetTexture = texture;
let spriteFrame = new cc.SpriteFrame();
spriteFrame.setTexture(texture);
this.RoleImgBox.spriteFrame = spriteFrame;

这种方式生成的纹理sprite的trim无法生效吗?

trim 是在编辑器里面做的,运行时就没法做了

加了锁的结点,能否默认是收起来的?不要折叠开,结点多,每次编辑收收叠叠的,体验贼蛋疼

引擎组大大记得帮看一下…

@huanxinyin

建议不要把属性每次都全部展开, 体验很不好,

麻烦用rc.5测试下

麻烦用rc.5测试

插眼
留言随便找了个位子

模拟器restart修复了。
但是热更新restart还是会报错
测试方式,用热更新范例更新下就报错了
错误日志


源码位置

我现在的需求是在编辑器里,点击一个节点的不同部位,需做不同的处理。
看了官方的 CustomGizmo进阶 的例子,坐标转换的时候,会出现问题。
在onCreateMoveCallbacks方法return的 几个点击响应函数中,传进来的坐标是编辑器上的坐标,例子直接当成场景坐标处理了。
要怎样才能转换成场景坐标。

你是在模拟器里面去测试热更新吗?这个是不支持的

打包成apk测试的。你们跑下 热更范例吧

这个是我今天测试的demo,没有复现你说的问题,可否提供下你构建出来的首包资源和更新版本的打包资源?我们看下资源是否存在问题。
1599791863455621.mp4.zip (1.3 MB)

请问佳能到底是什么?

@jjyinkailejj @huanxinyin 大佬帮看下,

Android Studio 打debug包可以,release包就不行

Unsupported Modules Detected: Compilation is not supported for following modules: libcocos2dx. Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project.

物理引擎库,https://github.com/schteppe/cannon.js