Search Unity

Question Material Access "/Lighting/Power". How?

Discussion in 'Scripting' started by renman3000, May 25, 2021.

  1. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,699
    Hi there,
    I have a Material (purchased via the Asset Store).
    I want to access some variables in it, but am unsure how.
    In pic, I want to Reference: Lighting, Diffuse, Power, Ambient.
    HELP!!!
    Thank you
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Go single-click the shader itself (what you used for the above material) and look in the inspector.
     
  3. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,699



    Hi I found the shader and the properties that I want, but I am unsure how I would access them.
    See pic. Any help is appreciated.