- Home /
Is it possible for 4.6 UI Mask script to mask more than UI elements?
I'm using a combination of the new Unity UI elements and 2dToolkit. The new text/font component is pretty blurry, so I've decided to continue using 2dToolkit's textmesh for text.
I'm creating a scroll view using a ScrollRect, a content container and several item cards that have textmesh (mesh renderer) components. My hierarchy looks like:
Canvas
ScrollRect (and UnityEngine.UI.Mask)
Content
Item Card (UnityEngine.UI.Image)
Title (Mesh Renderer)
When I scroll the content, the item cards are properly masked because they use the new UI.Image, however their child objects using mesh renderers aren't masked. All gameobjects are on the UI sorting layer. Is there a way for the new mask to do this or should I run my own depth mask or something?
We're running into this issue now as well. We have some meshes that we'd like to use in the UI and use them in a screllRect, but mask script doesn't work on them. What did you end up doing?
Your answer
![](https://koobas.hobune.stream/wayback/20220613163606im_/https://answers.unity.com/themes/thub/images/avi.jpg)