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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug Scrollview Viewport Mask not hide content

Discussion in 'UGUI & TextMesh Pro' started by xtdiwd, Jan 20, 2021.

  1. xtdiwd

    xtdiwd

    Joined:
    Jul 25, 2020
    Posts:
    95
    I've seen other threads about this issue, and it could also be a bug.

    The Scroll View contains only UI elements (Image, Text, Button, Panel, and anyway I need to scroll these components) and has a white-transparent Image source. But even putting it in full color the result does not change.
    In Viewport the Mask component has ShowMaskGraphic on, even if I ignore the utility of ShowMaskGraphic.

    Problem: in Unity everything works perfectly. Compiled for Android the Content is all visible, even outside the Viewport.

    I have at least two Scroll Views in my game, and both have this flaw.

    Platform changes the result!
     
  2. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    506
    Have you tried a build on desktop? It can be related to the fact that it is a build OR the fact that it is on android.
     
  3. xtdiwd

    xtdiwd

    Joined:
    Jul 25, 2020
    Posts:
    95
    On Windows it works correctly. But I need it to work on Android too!
     
  4. xtdiwd

    xtdiwd

    Joined:
    Jul 25, 2020
    Posts:
    95
    I have come to the conclusion that this is a bug. Updated label
     
  5. AdrianoDeRegino

    AdrianoDeRegino

    Joined:
    Aug 10, 2019
    Posts:
    87
    I´m having this same bug too, unity 2021.1.6f1, all fine on editor, but on android, both Il2CPP and mono, it doesn't clip/mask.

    @xtdiwd , did you sent a bug report?