I think I broke everything somehow [SOLVED]

I’ve included a lot of background information here, for which I apologize, but I hear that detail helps solve these problems quicker.

I was working on the lecture “Using the Steam Transport” and wasn’t able to import FizzySteamworks. Granted, I tried dragging it into Unity, which is said to be a lot buggier, but I didn’t hear about the GIT url way until the next lecture. So because it wouldn’t import, I browsed the discussion boards looking for the same error and found that someone else had the same problem. The thread was answered with the solution, and I quote, “follow the next lectures process of downloading all the mirror, Fizzysteam, Steamworks and SteamManager packages and scripts”, so I went to the next lecture and followed alongside it.

While following that lecture, I updated my project to 2021.3.29f1, and successfully deleted and reimported Mirror without any unusual problems, as far as I could tell. When I tried to import FizzySteamworks, even with the GIT url method, it didn’t work. I scoured some discussion boards again, even outside gamedev.tv this time, and found that I had to install Git. So after I installed it, I was able to import FizzySteamworks AND Steamworks.net successfully.

At this point, I had the latest releases of Mirror, FizzySteamworks, and Steamworks.net imported on my newly-updated-to-Unity 2021.3.29f1 project. The only error that was remaining after all of this was… a shader graph error?

I once again scoured the internet for a solution, but the one I found (and followed precisely after several tries) didn’t work.

I not only have this shader graph problem, but I’ve discovered that when I try putting any script onto a gameobject in the scene, it yields this error without fail.

I don’t know when this specific problem started, but I only noticed it after all of this.

It could be that I have to start the whole thing over, but I’d like to avoid that if possible. Still, no sweat if nobody has a solution, 'cause I’m thinking it might be a rare case.

Try this:
Close Unity and delete the ‘Library’ folder. Then open the project again. Unity will recreate the library folder so it will take a little longer to start up.
If that didn’t work, the next thing to try is this:
Right-click somewhere in your project folder and select ‘Reimport All’ from the context menu. This will give you a warning and if you select ‘Yes’ (or whatever to confirm) Unity will restart. It will recreate all the ‘meta’ files

No success with either method. The shader graph error still appears in the console and I can’t add scripts to gameobjects.

Uhm. OK, one more thing
Go to Edit > Preferences and find the External Tools tab. If there’s a Regenerate project files button in there, click it.

Check if there’s an updated version of Shader Graph in the package manager. Install it if there is. Or perhaps you may need to downgrade it.


Edit
I found that most people with this shader graph error fixed it by completely uninstalling Unity and reinstalling it. It’s not ideal
https://forum.unity.com/threads/running-into-a-strange-error-with-shader-graph-12-1-6-and-urp-12-1-6-in-unity-2021-2-16f1.1256823/

My first instinct would be to uninstall the shadergraph package. See if you can get it compile after that. You might have to manually delete the folder contain the shadergraph scripts from the packages folder. The goal is to get the project into a state where it can compile, then you can readd packages from there.

I tried regenerating the project files but to no avail, the scripts still won’t attach. I looked in the package manager for a downgrade function on the shader graph package, but I couldn’t find it. The thread you linked is the exact same one I had found and followed before, but I tried it once more just in case. Still no success.

As for uninstalling the shadergraph package, I couldn’t find any button for uninstalling it in the package manager, so I tried deleting the folder manually, but then I got this console message because of it.

I navigated to the project folder in my file explorer(to be clear, I’m on Windows 10) and tried finding a folder for the shadergraph package there, but all I could find were .csproj files. Should I delete these?

image

Are you able to share a screenshot of the package manager with the shader graph package selected? This is starting to sound like an “reinstall Unity” problem…

Sure thing, here.

I’ve already uninstalled and reinstalled Unity several times to try to fix this, additionally going into local Appdata files after uninstalling and deleting the unity folders for a completely clean wipe. But I won’t say no to more reinstalls if it means saving the project.

Oh, it might not be eligible for uninstall because it’s a dependency of another package. Try uninstalling the URP package first, then uninstalling the shader graph package. What other packages do you have installed?

1 Like

It worked!! I don’t get the shadergraph error anymore and my scripts are working! My assets lost their textures, but I can fix that. If you still want the packages, here are the ones that were displayed in the Package Manager, prior to uninstalling the URP package.

image

And these were the contents of the Packages folder in the Project window.

image

Thank you both very much for y’all’s help!!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms