Search Unity

"Material does not have a _MainTex textzure property" Error while my shader has MainTex_

Discussion in 'Shaders' started by reppeti, Aug 14, 2021.

  1. reppeti

    reppeti

    Joined:
    Jun 29, 2021
    Posts:
    44
    So I tried to make the pixelating shader using this tutorial:


    But when my texture just becomes full black presumably because of this error:
    Capssssssture.PNG
    While my shader graph vlearly has a property like that:
    Caaaaaaaaaapture.PNG
    I use Unity 2020.3.12f1 with URP 10.5.1
     
  2. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,550
    You may have to checkmark the
    Exposed
    option so that it becomes a serialized material property.

    Also, if you haven't, give Unity a restart.