I get multiple “Failed to write shader into Library/ShaderCache/c/c1199b85c048312487a1eb5f94e79cbf.bin.”.
I am using the same version of unity. (2022.1.22f1 )I’ve tried redownloading unity. I have the modules for mac and linux(mono versions)
Usually, this sort of error can be fixed by closing Unity and deleting the Library folder. It’s possible that this may be related to an issue in the ShaderCache that was fixed in Unity 2021.2.
You might also make sure that your graphics driver is up to date, though it’s unlikely that’s the cause.
I’ve seen that solution on stack overflow and it doesn’t work for me. It also doesn’t work when i reload the zip file. I have drivers up to date. I don’t know what to do with the ShaderCache info. I’ve tried running it in 2021.2 and it says that i need to use an older version of unity.
Ok, so I did try to open the file in 2022.2 while ignoring the warning, and I still have the same compilation errors.
update: actually it has different compilation errors about not finding a file path.
“Library/Bee…”
I think that cloning the gitlab repo is the approach that works. I have a “OnDestroy can not take parameters error” but I’m guessing that can be easily fixed.
update:I fixed the error by making sure I was checked out to the right commit.
The OnDestroy can not take Parameters error is because Sam accidentally used the name of an existing Unity Callback. It still technically works, but if you ever need the Unity OnDestroy() in the script there will be a conflict.
You can eliminate this by changing the name of the OnDestroy() method in Launcher.cs to OnDestroyBullet. This means that the reference to OnDestroy in the bullet creation will have to be changed as well.
Ah, I see. Thank you for the help.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.