Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Error installing shader graph

Discussion in 'Shader Graph' started by Anonymou5Coding, Dec 21, 2022.

  1. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    When installing shader graph into my already existing project I get this error I have tried on many different projects, switched from a older to a newer version, but nothing has worked. The errors looks like this the main one is the one selecting in blue the others just clear away(I think it has something to do with a missing import):

    Library\PackageCache\com.unity.shadergraph@12.1.8\Editor\Generation\Targets\BuiltIn\Editor\ShaderGUI\MaterialAssemblyReference\RawRenderQueue.cs(12,24): error CS1061: 'Material' does not contain a definition for 'rawRenderQueue' and no accessible extension method 'rawRenderQueue' accepting a first argument of type 'Material' could be found (are you missing a using directive or an assembly reference?)

    Please help I have spent ages trying to figure it out myself and the answer.unity page didn't help as no one responded.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Do you have URP or HDRP installed?
     
  3. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    Yes I have URP but it happens even without it installed.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Maybe try to delete the Library folder to have everything reimported?
     
  5. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    I have done that and it didn't work.
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Do you have any graphs with the built-in output?
    Otherwise I'm out of ideas
     
  7. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    I'm not using shader graph I just have to install it as its a dependency of URP package. Do you know how to install an older version of a package as that might be able to help myself.
     
  8. DaltonJG

    DaltonJG

    Joined:
    Jul 8, 2021
    Posts:
    1
    I am currently having the same exact issue. I have yet to find a solution either, which is really frustrating since it block you from using URP or HDRP in any project. If I figure anything out though I will be sure to post it here.
     
  9. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    Yeah its so annoying, because I have gone back versions of Shader Graph and had no issues. Hopefully Unity will release a patch or fix the bug soon.
     
  10. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Did you make a bug report? If not, it probably won't be fixed
     
  11. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    No actually I just put it on here. Forgot to do that actually will do it when I get back from holiday. Thanks for reminding me.
     
    DevDunk likes this.
  12. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    Just about to test the new shadergraph version that has released really hoping that works, also using it on a brand new unity version and install.
     
  13. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
  14. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Then make a bug report with that version so it can be fixed
     
  15. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    I tried the big reporter was only 3% through packing after 3 hours and hadn't crashed and I have a good system, ryzen 5600x and rtx 3060, 16gb ram
     
  16. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Weird. Which unity version was this?
     
  17. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    I noticed that I had a file missing in Library\PackageCache\com.unity.shadergraph@12.1.8\Editor\Generation\Targets\BuiltIn\Editor\ShaderGUI\MaterialAssemblyReference\ could you send a zip of that folder please.
     
  18. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    2021.3.16f1 and the project is about 5.5gb but i had like 15mb/s upload at the time

    do u have discord so it is easier to talk jspr#8732
     
  19. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Ahh that explains. I'm not sending a zip. If you make a new project and import the packages or make a new URP project it will automatically install everything. If not, reinstall unity
     
  20. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    I have created a new project and used multiple unity versions i am lost
     
  21. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    I understand why u wanted want to send me a zip, but could you you paste the sripts to a pastebin
     
  22. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Maybe uninstall everything including unity hub?
    I am usinf 2021.3.15 without issue (haven't had the time to try .16)
     
  23. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    there is a new shadergraoh version 12.1.9 but it doesnt appear in package manager even though on the unity sit it says my version is compatible, just to check unistalling it all won't auto delete my project files would it be worth backing them up
     
  24. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    No. I do recommend deleting the library folder as well.
    Also use version control for all projects
     
  25. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    what is version control

    What does deleting the library folder do as well
     
  26. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Version control basically backups every change you make to the project so you can roll back to it and compare changes etc. Like Git, svn, perforce, plastic scm, etc

    Deleting the library folder will reimport the project files and build up the packages again
     
  27. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    thanks i have just deleted all the unity install and installing 2021.3.16f1 again or should i switch to a 2022 install
     
  28. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    If you want any of the 2022 features, use 2022.2

    For new projects thats fine, but it might have bugs in it
     
  29. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    what special features does it have that could benefit me
     
  30. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    I didn't work do you no why i can't get the new version of shader graph
     
  31. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    Would maybe using a different device with unity to install a good install and transfering the package over work, do you have a solution to the unity bug reporter being slow? Thanks for all your help!
     
  32. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    Still doesnt work got rid of the error after copying the package files from another device, but lights have no impoact
     
  33. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    Fixed it by changing updating the materials on all my object, thanks so much for your help. It's really apreciated, if I remember I will send you a steam key to my game when it releases.
     
    DevDunk likes this.
  34. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Glad you got it fixed!
    What kind of game are you working on?
     
    Anonymou5Coding likes this.
  35. Anonymou5Coding

    Anonymou5Coding

    Joined:
    Jan 15, 2021
    Posts:
    28
    I farming game, with aspects of dungeon crawling combat, with a similiar art style to stardew valley, although i'm not trying to create a clone of it so if you have any ideas to make it different they would be appreciated
     
    DevDunk likes this.
  36. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,127
    Cool! I'd say look up some free game design courses and just start prototyping. Get the basics of the game down first (the MVP (minimal viable prototype) should already be fun!) And then try out additions that might seperate you from the 'clones'