Search Unity

4.6 scrollrect and mask not working with images

Discussion in 'UGUI & TextMesh Pro' started by riot9, Nov 8, 2014.

  1. riot9

    riot9

    Joined:
    May 6, 2014
    Posts:
    35
    Hi everyone,

    I'm having a problem with images and masks on 4.6b20. It almost seems like it's a z buffer issue, but can't figure out how or why.

    I have a scrollrect set up that is targeting a vertical layout group that's filled with a combination of vertical and horizontal layout groups with text and images in them. As I scroll, the text gets cut off by the mask as expected, but the images do not.

    I've attached an image that may help explain what's I'm seeing.

    I'm still very new to Unity, so I appreciate any help!
     

    Attached Files:

  2. riot9

    riot9

    Joined:
    May 6, 2014
    Posts:
    35
    Oh, I forgot to mention that this is happening in the viewer, and when I deploy to Windows Phone, PC, android, and Windows 8.1.
     
  3. riot9

    riot9

    Joined:
    May 6, 2014
    Posts:
    35
    I just re-created the structure of one of the horizontal layout groups from scratch, running between changes to find where it breaks down, but to my surprise it worked this time. I can't see anything different between the two layout groups, but one works and one doesn't, so I'll just copy the working one and delete my broken ones.