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

Nested masked UI elements does not updated correctly when mask is disabled and re-enabled #4856

Open
tch0m opened this issue Jul 11, 2022 · 2 comments
Labels
area: ui UI related issue bug

Comments

@tch0m
Copy link

tch0m commented Jul 11, 2022

Updated by @yaustar : Wed 16 Nov 2022

Project: https://playcanvas.com/project/1009169/overview/double-masking-issue

image

In the launch tab
image

Press Space to toggle the mask property of Entity 'Mask' off
image

Press Space to toggle it on again, mask doesn't not render correctly
image


We've found an issue with masked elements in the editor. If a masked element inside another masked element is set to mask false then back to true, the editor does not apply the mask. Refreshing the browser window gets it to display correctly.

Steps to Reproduce

  1. Have an image element with mask set to true as a child of another image element with mask set to true
  2. Disable the mask of the inner masked element
  3. Re-enable the mask, it appears as a white box
mask-in-mask-bug.mov
@yaustar yaustar added bug area: ui UI related issue labels Jul 11, 2022
@yaustar
Copy link
Contributor

yaustar commented Nov 16, 2022

Looks like this is actually an engine issue as this happens at runtime too. Updating the first post with example

@yaustar yaustar transferred this issue from playcanvas/editor Nov 16, 2022
@yaustar yaustar changed the title Masked UI element within masked UI element does not updated correctly when mask is re-enabled Nested masked UI elements does not updated correctly when mask is disabled and re-enabled Nov 16, 2022
@mvaligursky
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui UI related issue bug
Projects
None yet
Development

No branches or pull requests

3 participants