Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIOpacity设计问题 #18124

Open
kaxifakl opened this issue Jan 4, 2025 · 3 comments
Open

UIOpacity设计问题 #18124

kaxifakl opened this issue Jan 4, 2025 · 3 comments
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@kaxifakl
Copy link
Contributor

kaxifakl commented Jan 4, 2025

Cocos Creator version

3.8.5

System information

Window 10

Issue description

UIOpacity在原生中会递归设置子节点opacity,这种设计会带来很多问题,比如在Animation组件中同时修改根节点和某一子节点的opacity

Relevant error log output

No response

Steps to reproduce

...

Minimal reproduction project

No response

@kaxifakl kaxifakl added Bug Needs Triage Needs to be assigned by the team labels Jan 4, 2025
@minggo
Copy link
Contributor

minggo commented Jan 7, 2025

原生和 web 应该是一致的行为。你反馈的是说原生和 web 不一致,还是反馈这个设计本身的问题?

@kaxifakl
Copy link
Contributor Author

kaxifakl commented Jan 7, 2025

原生和 web 应该是一致的行为。你反馈的是说原生和 web 不一致,还是反馈这个设计本身的问题?

反馈的是设计,原生端递归子节点的逻辑,和batcher2d中walk逻辑,都是递归操作,是否可以优化

@qiuguohua
Copy link
Contributor

是的,这块后续感觉可以改成和web一直,现在原生是单独处理的。很容易出错。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

3 participants