Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UI Elements Instantly Breaks Sprite Masks (Unity 2D)

Discussion in 'UGUI & TextMesh Pro' started by dokisoft, Dec 26, 2018.

  1. dokisoft

    dokisoft

    Joined:
    Apr 28, 2017
    Posts:
    4
    Currently have a sprite mask, covering a rectangular area within my Canvas. Inside the mask, I've put sprites and set their Mask Interaction property to "Visible Within Mask". This works perfectly, showcasing sprites within the mask, and masking all sprite visuals beyond the mask.

    The issue is that any instance of a UI element inside the mask's area, breaks the mask, and thereby completely breaks the setup. Is there any solution to prevent UI from breaking the sprite mask?

    Similar Issue - https://forum.unity.com/threads/ui-masks-not-working.504874/
     
  2. dokisoft

    dokisoft

    Joined:
    Apr 28, 2017
    Posts:
    4
    anyone?