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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (fix version 9.0.0 - preview.34):
Fixed in Shader Graph 9.0.0 - preview.34 (verified in 2020.2.0b5.3233)