Bunch of warnings for .meta inconsistency after package update in Unity 2019.2.12f1 HDRP, how do I fix that?
Since I upgraded HDRP, Shader Graph and Core RP Library from the Package Manager, everytime the assets database is refreshed Unity logs the following warnings:
A meta data file (.meta) exists but its asset 'Packages/com.unity.visualeffectgraph/Editor/Models/Contexts/Implementations/HDRP' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.Removing Packages/com.unity.visualeffectgraph/Editor/Models/Contexts/Implementations/HDRP because the asset does not existCouldn't delete Packages/com.unity.visualeffectgraph/Editor/Models/Contexts/Implementations/HDRP because it's in an immutable folder.
I didn't remove anything manually. I checked if the folder can be found by using Windows Explorer but it's not there, specifically: there is a
folder but it only containsPackages/com.unity.visualeffectgraph/Editor/
Resources/uxml/
What I've already tried (on isolated branch copies of the same project):
deleting com.unity.visualeffectgraph
manually deleting local package cache
removing HDRP and installing it again (that caused also vfxGraph to be removed and added again)
deleting .csproj files (useless, wasn't it?)
search for any .meta file related to the vfxgraph to delete it but I couldn't find anything
None of these solutions worked.
I'm sure there's an easy solution for this I'm missing out, I hope someone out there can help me with this
Answer by Comafly · Jan 13, 2020 at 01:45 AM
I've also started getting these errors in Unity 2019.2.17f1 after upgrading to HDRP.
I've found a bandaid solution:
In Windows, navigate to your project folder, and find this location within it:
\Library\PackageCache\com.unity.visualeffectgraph@6.9.2-preview\Editor\Models\Contexts\Implementations
Then delete the 'HDRP.meta' file.
This stops the errors for this session. But Unity will create a new meta file when you start the program again, so you have to delete it every time.
Thanks for your help!
Well... that's better than nothing I guess, and it could also be a starting point to find a more durable solution. At least with this solution it is possible to avoid receiving tons of warnings each time a script is compiled :)
$$anonymous$$uch appreciated
Thanks! This helped me, but I just deleted everything in the PackageCache folder and had unity rebuild itself. It works in 2020.3.5f1, not sure in other versions.
Answer by Fiard · Jan 28, 2020 at 05:45 PM
You can actually avoid this problem totally, but this solution might have some issues in future versions.
Simply create empty folder named "HDRP" near this HDRP.meta file in path "\Library\PackageCache\com.unity.visualeffectgraph@6.9.2-preview\Editor\Models\Contexts\Implementations" and deny all rights for everyone for this folder.
Example of how this can be done in windows is here https://www.maketecheasier.com/create-undeletable-folders-windows10
After this unity will not delete this folder on launch and there will be no more warning messages.
Sorry for my English.
Answer by LOSantos · 6 days ago
I suggest you go to Window > Package Manager in the tool, look for this extension and remove it. If you need it, try removing and reinstalling
Your answer
Follow this Question
Related Questions
Render inbetween two post processing effects in URP? 0 Answers
Why does VFX Graph work in URP? 0 Answers
Weeks of work wasted due to importing a unity asset 1 Answer
URP Point Light shadows 0 Answers
URP - How to get rid of glossy terrain? 0 Answers