Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Material doesn't have _Stencil property

Discussion in 'Scripting' started by pertholdth, May 16, 2024.

  1. pertholdth

    pertholdth

    Joined:
    Feb 28, 2024
    Posts:
    196
    Im using shader graph, i create URP unlit shader and I make my shader so far so good

    but I get a warning

    Code (CSharp):
    1. Material doesn't have _Stencil property UnityEngine.Canvas:SendWillRenderCanvases ()
    I do need to use the stencil ops, how can I modify the shader so that it implicitly adds the stencil ops?

    I have found a raw code shader that solves my problem, but I wonder if this is possible to fix in shader graph?