Search Unity

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