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
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
-
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.
-
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! :| -
ram_gamedev
Jul 27, 2020 18:23
The issue is still reproducibe on 2019.4.0LTS
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Resolution Note (fix version 9.0.0 - preview.34):
Fixed in Shader Graph 9.0.0 - preview.34 (verified in 2020.2.0b5.3233)