Search Issue Tracker

Fixed in 9.0.0 - preview.34

Votes

2

Found in [Package]

4.10.0, 7.1.7

Issue ID

1210945

Regression

No

[ShaderGraph] When Exporting Shader Graph, files referenced in it and it's Sub Graphs are not included as dependencies

Package: Shader Graph

-

Reproduction steps:
1. Open project in "2020.1.0a20.zip"
2. Notice that in Shader Graph "ShaderGraph" there is a Custom Function Node
3. Notice that the Custom Function Node references a file "Script.hlsl"
4. There is a Sub Graph "New Shader Sub Graph" created from "ShaderGraph"
5. Try Exporting the "ShaderGraph" via Project window (right-click context menu -> Export Package...)
6. Make sure that "Include dependencies" option is on

Expected results: both: the referenced file "Script.hlsl" and Sub Graph are included as dependencies during Export
Actual results: neither the file nor the Sub Graph are included as dependencies during Export

Reproducible with: Shader Graph 4.10.0 (2018.4.16f1), Shader Graph 6.9.2 (2019.2.19f1), Shader Graph 7.1.7 (2019.3.0f5, 2020.1.0a20)
Could not test with 2017.4 because there is no Shader Graph in versions earlier than 2018.1

Notes: in 2018.4 I was not able to open Shader Graph editor and create a Custom Function node with a Script therefore only tested with Sub Graph

  1. Resolution Note (fix version 9.0.0 - preview.34):

    Fixed in Shader Graph 9.0.0 - preview.34 (verified in 2020.2.0b5.3233)

Comments (3)

  1. Steven-1

    Mar 16, 2022 12:19

    It's worse than what's stated here. Importing a package with a shadergraph-shader in a Unity before 2020.2 will import a not working shader (displayed as a blank page).

    So it's not just that you can't export before 2020.2, you can't import either.

  2. Steven-1

    Mar 16, 2022 12:02

    So it's basically impossible to upload a package in the Unity Asset Store with custom URP shaders in Unity versions before 2020.2?
    Great! :|

  3. ram_gamedev

    Jul 27, 2020 18:23

    The issue is still reproducibe on 2019.4.0LTS

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.