Search Unity

Question Accessing HDRP/Lit metallic property in code?

Discussion in 'High Definition Render Pipeline' started by jaxsaunders, May 26, 2023.

  1. jaxsaunders

    jaxsaunders

    Joined:
    Feb 6, 2017
    Posts:
    21
    I've been trying to access the metallic property in an editor script so that I can print out all of my materials with a metallic value of more than .75, but I can't seem to even access the metallic value at all. Any suggestions?


    upload_2023-5-26_10-53-18.png
     

    Attached Files:

  2. cLick1338

    cLick1338

    Joined:
    Feb 23, 2017
    Posts:
    74
    Is it not .GetFloat("_Metallic") ?
     
    Remy_Unity likes this.