Search Issue Tracker

Fixed

Votes

0

Found in [Package]

7.2.1

Issue ID

1228498

Regression

No

error CS0234: The type or namespace name 'ShaderGraph' does not exist in the namespace

Package: Shader Graph

-

How to reproduce:
1. Clear out your C:\Users\[username]\AppData\Local\Unity\cache\packages folder
2. Unzip the attached packages.unity.com.zip file into C:\Users\[username]\AppData\Local\Unity\cache\packages (should be cache\packages\packages.unity.com\...)
3. Open attached project "pactest.zip"
4. Observe the Console window

Expected result: no errors are thrown
Actual result: "Library\PackageCache\com.unity.visualeffectgraph@7.2.1\Editor\ShaderGraph\VFXShaderGraphParticleOutput.cs(6,19): error CS0234: The type or namespace name 'ShaderGraph' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)" is thrown

Reproducible with: 2018.4.19f1, 2019.3.6f1, 2020.1.0b3, 2020.2.0a4
Could not test with: 2017.4 (Shader Graph was not yet released)

Comments (2)

  1. UnrealSoftware

    Jun 18, 2023 10:19

    I had the same issue after upgrading to Unity 2022.3.2f1 and trying to add URP via package manager to an existing project.
    Was able to fix it by removing the C:\Users\[username]\AppData\Local\Unity\cache\packages folder.

  2. Jason-King

    Jan 27, 2022 04:08

    I had this issue when I moved the source out of the Plugins folder into a separate folder - and only could be resolved by moving the code back into the Plugins folder.

Add comment

Log in to post comment