cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

[3.6] node with UIOpacity always interrupt without render componet

Open xianyinchen opened this issue 3 years ago • 3 comments

Cocos Creator version

3.6.0

System information

Window11, iOS, Android

Issue description

if we have node tree like this. when you set opacity=0 for the first 'Node', it work on web platform, but not work on native platform.

企业微信截图_16614114022708

Relevant error log output

No response

Steps to reproduce

test project, click screen any where, the white block will disappear in web-mobile Disappear, but not work on window or iOS platform. TestOpacity.zip

Minimal reproduction project

No response

xianyinchen avatar Aug 25 '22 07:08 xianyinchen

https://github.com/cocos/cocos-engine/pull/12533 point3

Zhmz avatar Sep 02 '22 06:09 Zhmz

https://forum.cocos.org/t/topic/147022/ If the parent node does not have a rendering component added, the native platform display is not correct: 如果父节点没有添加渲染组件,原生平台显示不对,节点没有隐藏 image image

If the parent node has a rendering component added, the native platform and web platform display will be the same: 如果父节点添加了渲染组件,两个平台显示效果就一样。 image image

demo: NewProject_14.zip

OnlyKoei avatar Mar 15 '23 03:03 OnlyKoei

Due to native modification, if there is no uirenderer component, rendering information cannot be passed to the Native layer 由于原生化的修改,导致如果没有 uirenderer 组件,无法传递渲染信息到原生层

LinYunMo avatar May 15 '23 09:05 LinYunMo

fixed at https://github.com/cocos/cocos-engine/pull/18614

dumganhar avatar Apr 14 '25 14:04 dumganhar