Search Unity

Bug the text file of a shader graph doesn't contain the path of the hlsl yet it complains of missing ref

Discussion in 'Shader Graph' started by laurentlavigne, Mar 29, 2021.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    upload_2021-3-28_17-47-40.png
    so, since shadergraph has no recovery mechanism I open the shadergraph in visual code then search for said path
    guess what? it's not in there!
    upload_2021-3-28_17-47-17.png
    so i look in the meta
    nope
    upload_2021-3-28_17-48-40.png

    SG is like a scavenger hunt
    i wonder where you guys hid the path

    now here is the weird part
    i dive inside the subgraphs, they're all fine and working
    upload_2021-3-28_17-52-21.png
    and looking inside the subgraph text i also see no path so clearly the reference is handled the unity way, normally and correctly

    the bug then is that, when a custom function references a hlsl and is inside a subgraph, the host graph borks the entire change of reference
     
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    1325132
    ... can't wait for surface shader v2