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

sprite 组件grayscale设置为true,在游戏运行中鼠标略过按钮,按钮的sprite恢复成普通状态,置灰失效

Open wsLyr opened this issue 7 months ago • 2 comments

Cocos Creator version

3.8.6

System information

window1

Issue description

sprite 组件grayscale设置为true,在游戏运行中鼠标略过按钮,按钮的sprite恢复成普通状态,置灰失效

Relevant error log output

No response

Steps to reproduce

none

Minimal reproduction project

none

wsLyr avatar Apr 25 '25 07:04 wsLyr

能否给一下复现的 demo,我这边试了一下是正常的,我是单纯建了一个 Sprite 节点,然后设置 grayscale 为 true

knoxHuang avatar May 12 '25 01:05 knoxHuang

运行浏览器中出现,不是在编辑器中

wsLyr avatar May 20 '25 06:05 wsLyr