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

设置 `node.layer=0` 后, node的active改变时, layer没有被正确处理

Open finscn opened this issue 1 year ago • 1 comments

Cocos Creator version

3.8.2

System information

all

Issue description

设置 node.layer=0 , 目的是 不渲染该node. 设置后可以实现"不渲染"的目的. 但是 node的active (也可能是父节点的active) 设置为false, 再还原回true时, 这个node 又被渲染了.

Relevant error log output

No response

Steps to reproduce

如上所述

Minimal reproduction project

No response

finscn avatar Apr 10 '24 02:04 finscn

最好给个简单 demo,确保我们的操作和环境是一样的。

minggo avatar Apr 15 '24 08:04 minggo