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

Color Setter for Simple Lit in URP doesn't work

Discussion in 'Shaders' started by Eckster, Apr 19, 2020.

  1. Eckster

    Eckster

    Joined:
    Feb 9, 2017
    Posts:
    18
    I get the error "material doesn't have color property '_basemap'" when I try to set the color on the Simple Lit shader for URP.

    The shader properties definitely have a color option for the Albedo, so this seems like a bug to me.
     
  2. AnKOu

    AnKOu

    Joined:
    Aug 30, 2013
    Posts:
    123
    By settings the inspector in debug mode on a material, you can see all the color parameters available.

    '_basemap' likely refers to a texture and not a color.

    Screenshot_7.jpg
     
  3. Eckster

    Eckster

    Joined:
    Feb 9, 2017
    Posts:
    18
    Right, but when you use `material.color = color` on pretty much any other shader (For example the normal Lit shader) it sets the Albedo color, but this doesn't work for Simple Lit.
     
    Mishaps likes this.