Search Issue Tracker
Active
Votes
0
Found in
6000.0.57f1
6000.2.4f1
6000.3.0b1
Issue ID
UUM-119168
Regression
No
Shader Graph Material is left in broken state when switching from a .git branch with no HDRP to a branch that contains HDRP
How to reproduce:
1. In the command prompt, open the directory where the bundle is stored, then clone the .bundle file using the following command: ”git clone ".\IN-113745_shader-test.bundle" IN-113745_ShaderTest-repo”
(please take a look at the notes if you get a warning after the command)
2. Navigate to the newly created folder in the command prompt: ”cd .\IN-113745_ShaderTest-repo”
3. Open the project "IN-113745_ShaderTest-repo" using the Unity Editor
4. Open the "Test.unity" scene
5. Observe the Sphere GameObject in the Scene tab
6. Close the project
7. In the command prompt: ”git checkout -f HEAD^”
8. Open the project (at this point, it is expected that the shader is broken, because the branch does not have HDRP)
9. In the command prompt: ”git checkout -f master”
10. Observe the Sphere GameObject in the Scene tab
Expected result: The sphere’s Shader Graph Material is not broken and the sphere appears shaded in the same manner as it did when opening the project for first time
Actual result: The sphere’s Shader Graph Material appears broken, pink
Reproducible with: 2023.1.0a1, 6000.0.57f1, 6000.2.4f1, 6000.3.0b1 (0470b869db67)
Reproducible on: Windows 11, MacOS 15.6.1 (M1)
Not reproducible on: No other environments tested
Notes:
* Workaround: in this particular case, right clicking in the Project tab → Reimport all, fixes the issue
* After all the steps are complete, the Standalone Player Build runs without errors but the Shader Graph Material remains broken. For a few seconds the sphere is black and then it defaults to pink
* If after entering the first command you get “warning: remote HEAD refers to nonexistent ref, unable to checkout.” and the newly created folder does not contain /Assets, /Packages and /ProjectSettings input the following commands into the command prompt, /IN-113745_ShaderTest-repo directory:
”git checkout -B master origin/master”
“git symbolic-ref HEAD refs/heads/master”
“git reset --hard”
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Text color is incorrect when text is rendered on SubMeshUI
- "Invalid SortingGroup index set in Renderer" errors when making many modifications in same frame
- Crash on GizmoBufferSizeHistory::GetBuffer() when opening a specific scene
- RenderTexture is not initialized when it is set as Material's Texture
- Branch node outputs a random value instead of a constant on the false conditon
Add comment