Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Feedback Could not find subgraph asset with GUID

Discussion in 'Unity Collaborate' started by Bordeaux_Fox, Jul 24, 2020.

  1. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    474
    Hi,

    we encounter an issue when updating shadergraphs via Collab. Basically, some GUID's of subgraphs are lost everytime somebody is pushing an update via Collab. Since I don't know if it's either Shadergraph or Collab, I also ask here for help. :)

    This bug has a serious impact on our project because it affects every team member, slowing us down, causing level designers to see pink material. And we cannot ask every team member to fix the graphs on their own. Not everyone has a technical background and we do not want to risk somebody breaks shaders by accident.
    Every team member needs to manually fix the Shadergraph nodes manually ( ! ) each time an update is pushed ( ! ) or redownloading the entire project.

    It seems the subgraphs GUID's are somehow only valid for the local project from person who pushed the change. But for every other team member, this GUID is invalid. Unity cannot find the reference, causing shaders not compile.

    https://forum.unity.com/threads/could-not-find-sub-graph-asset-with-guid.937190/

    What's the proposed workflow for teams using Shadergraphs? Because I cannot believe we are the only team using Unity encountering this bug. We need Unity Collab to sync the shaders for all team members without any errors.
     
    Last edited: Jul 24, 2020
  2. ryanc-unity

    ryanc-unity

    Unity Technologies

    Joined:
    Mar 23, 2016
    Posts:
    1,628
    Hi @Bordeaux_Fox, that sounds incredibly frustrating! I would like our team to look further into whether this issue is with Collab or ShaderGraph. Can you please open a support ticket with us so that we can investigate it further? You can do that by doing the following:

    1. Navigate to project on the Developer Dashboard.
    2. Select Collaborate > Support from the left hand menu.
    3. Click on Open a Ticket and fill out the support form.

    It'll be very helpful if you can provide a small repro project that recreates the issue you're seeing with the GUIDs being lost.
     
  3. romanpapush

    romanpapush

    Joined:
    Sep 20, 2012
    Posts:
    33
    Hi!

    Same thing happens when I just copy my shaders from one project to another (no Collab, just different Unity projects and versions on the same machine): subgraph links are lost and I can't get them working (re-importing doesn't help).

    #Update: Oh wait, was able to get them working after a series of re-savings and re-imports.

    Unity 2020.1 with verified URP and Shader Graph versions 8.2.0

    upload_2020-8-5_12-27-51.png

    Code (CSharp):
    1. Error in Graph at Assets/_GAME/Shaders/Toony Opaque.shadergraph at node Toony Flat Base: Invalid Sub Graph asset at "Assets/_GAME/Shaders/_Base/Toony Flat Base.shadersubgraph" with GUID cea1ee3b567e443ab8872ef2f551374b.
    2. UnityEditor.Experimental.AssetImporters.ScriptedImporter:GenerateAssetData(AssetImportContext) (at /Users/builduser/buildslave/unity/build/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:22)
    and

    Code (CSharp):
    1. ScriptedImporter for asset: Assets/_GAME/Shaders/_Base/Toony Flat Base.shadersubgraph, reported an invalid import dependency: 00000000000000000000000000000000
     
    Last edited: Aug 5, 2020 at 10:44 AM
unityunity