Search Unity

PerRendererData Color property does not change in Image UI

Discussion in 'Shaders' started by mahdiii, May 23, 2019.

  1. mahdiii

    mahdiii

    Joined:
    Oct 30, 2014
    Posts:
    801
    Hi. I can change the texture in the Image UI component but can not set the color.


    Code (CSharp):
    1. Properties
    2.     {
    3.         [PerRendererData] _MainTex ("Texture", 2D) = "white" {}
    4.         [PerRendererData] _Color("Color",Color)=(1.0,1.0,1.0,1.0)
    5. }