-
Creator 版本: 3.8.7
-
目标平台: Google 浏览器
-
重现方式:
protected onEnable() {
// 启用顶点透明度(否则透明度只受color.a影响)
this.ur[’_useVertexOpacity’] = true;
const postUpdateAssembler = this.ur.postUpdateAssembler;
this.ur.postUpdateAssembler = () => {
this.updateColor();
postUpdateAssembler.apply(this.ur);
};
}
3.8.6 版本, 会触发postUpdateAssembler调用,升级到3.8.7后,不会自动调用,查看引擎代码文件batcher-2d.ts 提交,受2d 渲染排序影响 USE_SORTING_2D, 如何解决这个问题,postUpdateAssembler修改顶点,项目中使用场景很多
