Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Vince_H · May 01, 2018 at 03:20 PM · canvasmaskmaskingsorting layerssorting order

UI masking on nested canvas with overwrite sorting layer.

I have a very specific canvas which has a masking issue.

I have a UI completely on a UI sorting layer.

The panel is on layer 25, there is a mask on a scrollrect just a bit under it.

Within this scrollrect are 20ish items. they have a background, a particle system on layer 26.

Content on layer 27 (subcanvas with sorting override)

And then another particle system on layer 28.

The particle systems are using a sprite mask to mask them outside the scrollrect (configured to mask anything between layer 25 and 30)

Using this setup, the subcanvas on the items, layer 27 DOES NOT get masked out by the scrollrect mask. If i disable the sorting override on the content subcanvas, the masking works fine.

Is there any way i can make this mask also mask that subcanvas on it's overlay? What is Unity doing here on the background that makes this not work? Is there a workaround?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CaioRosiscaKG · Feb 11, 2021 at 12:24 PM 0
Share

Did anyone find a solution for this? I also have a setup where a child inside a grid has it's own canvas which overrides sorting order and I need the scrollrect's viewport to mask them. Using unity 2018.4 btw.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by noobs · Jun 28, 2019 at 06:54 AM

I need this too, and have similar setup, would you please share your fix?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Vince_H · Jun 28, 2019 at 10:21 AM 0
Share

Sadly we ended up making the UI more simple and later even dropped the project. It was attempted in 2017.1 or .3, so you could try a newer version or bothering unity. You can try that, but that is all i got.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

89 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is there a way to adjust canvas z-ordering while using Alphabetical Sort in the Hierarchy? 2 Answers

Can I combine 2 or more UI masks? 0 Answers

Rect Mask 2D won't update if I move 0 Answers

Problem with Mask and Canvas (Sort Order) Unity 5 1 Answer

How would you mask a UI canvas like you would mask a sprite? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges