Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Create a shader graph material via code, then adds maps based on a json or txt file

Discussion in 'Shader Graph' started by newguy123, May 30, 2019.

  1. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    Hi guys

    I want to run a script (not at runtime), but perhaps some kind of plugin, that will create a HDRP shader graph material for me, then plugin bitmaps into the correct slots, read from a txt file.

    For example the text file could look like this:
    diffuse, grass.jpg
    specular, 0.5
    opcacity, grassblades.jpg

    Any clues?

    Alternatively, I want to create a similar standard PBR material with settings from sme text file, then convert the material to a shader graph for HDRP