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

Make a Material Maskable?

Discussion in 'General Graphics' started by toridominowski, Jun 17, 2017.

  1. toridominowski

    toridominowski

    Joined:
    Nov 7, 2016
    Posts:
    9
    I have several UI objects in a ScrollRect, all of which have their visibility bound by a UI Mask. The Mask works just fine when it needs to hide UI elements with the default UI material, but when I apply a custom material with a shader attached, the mask no longer hides elements outside its bounds. Does anyone have any suggestions for how to take a material and make it "maskable"?
     
  2. toridominowski

    toridominowski

    Joined:
    Nov 7, 2016
    Posts:
    9
    Still haven't figured this out. Any ideas?