Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

ScrollRect and Mask does not function

Discussion in 'UGUI & TextMesh Pro' started by Maraku Mure, May 18, 2015.

  1. Maraku Mure

    Maraku Mure

    Joined:
    May 2, 2015
    Posts:
    28
    Hello...

    Actually I have a problem with the scroll rect and with the mask. In my project there is a UI at the bottom of the screen with player's information. Because I want to put many informations in this UI, I thought to use a ScrollRect component and because the UI must not cover the playable part of the screen I used the mask component too.

    But this is what I got...
    http://prntscr.com/76lqeq

    This is a second version, the first one was masking correctly on editor but not on mobile, so I modify it in this way...now it doesn't mask neither in the editor...

    How could I solve this?
     
    Last edited: May 27, 2015
  2. DWilliams

    DWilliams

    Joined:
    Jan 12, 2015
    Posts:
    63
    Make sure your mask component is on the parent of the scroll contents. Also the mask requires an image component on the same gameobject that it uses as the area it will mask.
     
  3. Maraku Mure

    Maraku Mure

    Joined:
    May 2, 2015
    Posts:
    28
    Thank you for replying.
    I already did as you adviced me...
    http://prntscr.com/771jq4

    For this I can't understand why this is not functioning...
     
  4. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    Can you show us the image you are using for your mask? And can you show the alpha?
     
  5. Maraku Mure

    Maraku Mure

    Joined:
    May 2, 2015
    Posts:
    28