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. Dismiss Notice

[Solved] Custom shader in scrollview does not work in 2021

Discussion in 'UGUI & TextMesh Pro' started by Fred-Koa, Jun 23, 2022.

  1. Fred-Koa

    Fred-Koa

    Joined:
    Feb 5, 2019
    Posts:
    20
    In our project we have to change the stencil value.
    As the scrollview's viewport uses the stencil to mask the content, we used to replace the UI/Default shader in this component with a custom one.
    We recently upgraded to Unity 2021.1.3.1f1 but it doesn't seem to work anymore.
    I downloaded the default builtin shaders for this version, but even if I replace the viewport material with one that uses the code for the UI/Default shader, nothing appears in my scroll view.
     
  2. Fred-Koa

    Fred-Koa

    Joined:
    Feb 5, 2019
    Posts:
    20
    Update: Nevermind. I didn't use the right shader for the content