Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question [Solved] "Has no meta file, but it's in an immutable folder. The asset will be ignored."

Discussion in 'Package Manager' started by LibooSoft, Jun 4, 2023.

  1. LibooSoft

    LibooSoft

    Joined:
    Jun 19, 2019
    Posts:
    20
    Im getting these issues over and over again.
    Have tried to fix this, by reinstalling Unity on my system.
    Have tried by removing the Unity folders under "Local", "LocalLow" and "Roming".
    Have tried by by creating the missing meta files manually with a unique guid number, how ever Unity removes these and then tells me the do not exist, even though they just ware created manually.

    The latest version of Unity that works "Universal render pipeline" for me is "2020.3.47f1".
    Nothing above this version as worked as it should.
    Created blank projects with same results. I even tried to import working projects from another computer where this works, but as soon as it gets to be run on this computer, it breaks by files being removed once again.

    Need som help here...

    Asset Packages/com.unity.render-pipelines.universal/Editor/VFXGraph/Shaders/Templates/ParticlePlanarPrimitives/PassForward2D.template has no meta file, but it's in an immutable folder. The asset will be ignored.
    Asset Packages/com.unity.render-pipelines.universal/Editor/VFXGraph/Shaders/Templates/ParticlePlanarPrimitivesLit/PassDepth.template has no meta file, but it's in an immutable folder. The asset will be ignored.
    Asset Packages/com.unity.render-pipelines.universal/Editor/VFXGraph/Shaders/Templates/ParticlePlanarPrimitivesLit/PassDepthOrMV.template has no meta file, but it's in an immutable folder. The asset will be ignored.
    Asset Packages/com.unity.render-pipelines.universal/Editor/VFXGraph/Shaders/Templates/ParticlePlanarPrimitivesLit/PassForward.template has no meta file, but it's in an immutable folder. The asset will be ignored.
    Asset Packages/com.unity.render-pipelines.universal/Editor/VFXGraph/Shaders/Templates/ParticlePlanarPrimitivesLit/PassGBuffer.template has no meta file, but it's in an immutable folder. The asset will be ignored.
    Asset Packages/com.unity.render-pipelines.universal/Editor/VFXGraph/Shaders/Templates/ParticlePlanarPrimitivesLit/PassSelection.template has no meta file, but it's in an immutable folder. The asset will be ignored.
    Asset Packages/com.unity.render-pipelines.universal/Runtime/Materials/ArnoldStandardSurface/ArnoldStandardSurfaceTransparent.shadergraph has no meta file, but it's in an immutable folder. The asset will be ignored.
    Library\PackageCache\com.unity.shadergraph@14.0.7\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?)
     
    Last edited: Jun 7, 2023
  2. xyvan

    xyvan

    Joined:
    Jun 21, 2014
    Posts:
    13
    Same issue , reinstalled unity , hub
    deleted library, deleted cache, no luck

    Asset Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/Shaders/IndirectDiffuse/RayTracingIndirectDiffuse_APVL1.raytrace has no meta file, but it's in an immutable folder. The asset will be ignored.
    Asset Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/Shaders/IndirectDiffuse/RayTracingIndirectDiffuse_APVL2.raytrace has no meta file, but it's in an immutable folder. The asset will be ignored.
    Asset Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/Shaders/IndirectDiffuse/RayTracingIndirectDiffuse_APVOff.raytrace has no meta file, but it's in an immutable folder. The asset will be ignored.

    A meta data file (.meta) exists but its folder 'Packages/com.unity.multiplayer.tools/MetricTestData/Runtime/TestData/Definitions' can't be found, and has been created. Empty directories cannot be stored in version control, so it's assumed that the meta data file is for an empty directory in version control. When moving or deleting folders outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.

    A meta data file (.meta) exists but its folder 'Packages/com.unity.services.wire/Runtime/Centrifuge/Exceptions' can't be found, and has been created. Empty directories cannot be stored in version control, so it's assumed that the meta data file is for an empty directory in version control. When moving or deleting folders outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.

    A meta data file (.meta) exists but its folder 'Packages/com.unity.services.wire/Runtime/Centrifuge/Utils' can't be found, and has been created. Empty directories cannot be stored in version control, so it's assumed that the meta data file is for an empty directory in version control. When moving or deleting folders outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.

    A meta data file (.meta) exists but its folder 'Packages/com.unity.services.wire/Runtime/Centrifuge/Websocket' can't be found, and has been created. Empty directories cannot be stored in version control, so it's assumed that the meta data file is for an empty directory in version control. When moving or deleting folders outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.
     
  3. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    481
    Hi @LibooSoft and @xyvan,

    I'm sorry you've been running into this issue. This reminds me a problem that could occur on Windows, when files in packages have very long paths. A workaround then would be to shorten the project path Are you using Windows? Is the path of your project longer than 120-125 characters? If so, you could try shortening it (by giving it a shorter name or moving it to a different folder that has a shorter path) to see if this solves the problem.
     
  4. LibooSoft

    LibooSoft

    Joined:
    Jun 19, 2019
    Posts:
    20
    Thank you for your respons.
    Yes, correct, I'm a Windows user. I have tried different drives and paths, directly on root of the drive, with out changing the outcome of result.

    What puzzels me most is that even if I create the missing meta files manually. Unity will remove them. So obviously Unity can find these files. How ever Unity will for some reson remove them, and then call them missing and after that it fails.
     
  5. xyvan

    xyvan

    Joined:
    Jun 21, 2014
    Posts:
    13
    Thanks for your respond.

    Changed from c:\UnityProject\space to C:\s didnt work

    I also notice there are multiple items in the folder, only the one with raytracingindriectDiffuse_APVL is without meta file
     
  6. LibooSoft

    LibooSoft

    Joined:
    Jun 19, 2019
    Posts:
    20
    Try create a meta file manually. You can look for a similar file in the structure, copy and rename and change the guid key. Just change number. See if the file disappears after you restart Unity. See if we have the same kind of issue.
     
    Last edited: Jun 5, 2023
  7. xyvan

    xyvan

    Joined:
    Jun 21, 2014
    Posts:
    13
    tried, unity delete that file for me.

    Seems we are having same kind of issue, the path is indeed 120+ even on root
     
  8. LibooSoft

    LibooSoft

    Joined:
    Jun 19, 2019
    Posts:
    20
    And yes, path do exceed 120+. This even if I just call my project folder something like "b" on root level for me too.

    The interesting part is there are still folders with in the "Library\PackageCache\com.unity.render-pipelines.universal@14.0.7\Editor\VFXGraph\Shaders\Templates" folder with meta files on the same level, even tho 120+ has been exceeded.


    ParticleHexahedron
    ParticleLines
    ParticleLinesSW
    ParticleMeshes
    ParticleMeshesLit
    ParticlePlanarPrimitives <--Meta issue
    ParticlePlanarPrimitivesLit <-- Meta issue
    ParticlePoints
     
    Last edited: Jun 6, 2023
  9. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    481
    The Package Manager deletes files it does not recognize as being part of the package that should be installed, which is why it's deleting the files you're creating. It seems the problem is with the source package, not the ones in your project. That is, the Package Manager doesn't see those files in the source. These packages are normally distributed with the Editor itself. Did

    Sorry for the confusion, I was asking whether the path length of your project itself was more than 120-ish because yes, the relative file paths under it are quite long, around 125-chars each already. The default limit on Windows is 260 characters for the full path, so unfortunately this limit can easily be hit. And the way you describe it, path length really is most probably the issue here.

    However, now that we've established that moving your project to a very short root location doesn't help, I can't help but wonder if the Editor installation itself is correct. Did you customize the Editor install location or did you use the Hub's default? (The default location should be short enough not to run into this problem.) If you did not customize the Editor installation location, can you see in your installed Editor if the package files reported as missing in the console are actually present or not? If I'm not mistaken, you would find those under
    C:\Program Files\Unity\Hub\Editor\(your-editor-version)\Editor\Data\Resources\PackageManager\BuiltInPackages
    .
     
  10. LibooSoft

    LibooSoft

    Joined:
    Jun 19, 2019
    Posts:
    20
    Yes, that's it! It works!
    Thank you so much for your help @maximeb_unity !

    For some reason my previous path for the Unity Editor installation path in the Unity Hub was
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE

    and that is far longer then as you suggested
    C:\Program Files\Unity\Hub\Editor


    So what I did was change path in the Unity Hub settings.
    Reinstall Editor(s)
    Remove then reinstall the broken package and it was all working after that.

    As Iv been using Unity for several years. Do you know if the IDE folder been default for Unity in the past?
    Im not that sure that Iv ever tampered with this setting before. Can be wrong though. Was a long time since i first installed Unity on this machine. :)
     
    Last edited: Jun 6, 2023
    maximeb_unity likes this.
  11. xyvan

    xyvan

    Joined:
    Jun 21, 2014
    Posts:
    13
    For some reason My unity.exe was installed in
    Programe files/unity/hub/editor/my version/editor/myversion/editor
    It confused the first editor folder with second one.

    So, thanks for the help

    For those having same issue, look into editor installation path
     
    maximeb_unity and LibooSoft like this.
  12. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    481
    Great, I'm glad both of you are unblocked!

    Honestly I couldn't explain why those paths were set, but it's not impossible that those were somehow set due to a bug in a past version of the Hub where the wrong path was set and somehow that sticked. For instance,
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE
    is probably the path of the Visual Studio edition that is installable with the Hub; one version of the Hub might have mistakenly re-used that path as the default path for the Unity Editor installation folder as well - like a bug in the installation script. And as for the nested "version under version" case, well, I can't really explain that one ;)