Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice

Poke hole in UI Image with a mask?

Discussion in 'UGUI & TextMesh Pro' started by IAMBATMAN, Aug 17, 2017.

  1. IAMBATMAN

    IAMBATMAN

    Joined:
    Aug 14, 2015
    Posts:
    272
    I'm trying to poke holes and stuff through a UI image so the player can see the background. I thought I could do this with a mask, but it seems I need to reverse how masks work.

    My image is a scroll rect so the hole can move up and down, and the player should see the background through it.

    Any help? I tried a shader I found in some threads, but they weren't working in Unity 2017.
     
    Last edited: Aug 18, 2017
  2. IAMBATMAN

    IAMBATMAN

    Joined:
    Aug 14, 2015
    Posts:
    272
  3. IAMBATMAN

    IAMBATMAN

    Joined:
    Aug 14, 2015
    Posts:
    272
    bump! Please guys this is for a jam, I don't have much time :O
     
unityunity