-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
CanvasItem modulate property not working when YSort Enabled is set to true #63994
Comments
Update: I'm trying to reproduce this issue in Beta 1. I created a new project and it seems to be partially fixed, now the 'modulate' property only stops working if the node's parent also has 'y sort enabled' set to true. For instance, this works as expected:
This does not:
|
Still happening in beta 3 |
I have updated to version 4.0.1 stable and this seems to have been resolved, except for CanvasGroup nodes, although I'm not sure if this should be considered as expected behavior for the latter. Can someone confirm that? |
For me this is still happening, regardless of node type, tested it with plain Node2D and plain Control nodes in the issue I submitted. Did you do anything different to solve it for other nodes? |
Just checked, apparently it is working when changing the modulate color of the root node, but not for the children. |
Just got the bug, I'll add some pictures since there aren't any in the OP: The icon parent says "modulated", the children lost their color tints. The reason why only children are affected is probably that they are temporarily "detached" from their parent from the PoV of the renderer to apply Y sorting with nodes elsewhere in the scene tree. |
still happens in godot 4.0.2 |
Godot version
4.0 alpha 13
System information
Manjaro Linux x86_64, Kernel 5.15.57-2-MANJARO, GPU Nvidia GeForce RTX 3050, Driver version 515.57, Vulkan Mobile
Issue description
Children of Node2D nodes ignore the parent's 'modulate' property if 'y sort enabled' is set to true. If y sorting is not enabled, child nodes inherit the parent's color, but when it is enabled the color is ignored.
Steps to reproduce
Minimal reproduction project
Report-ModulateYSort.zip
The text was updated successfully, but these errors were encountered: