Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Immutable asset(s) were unexpectedly altered

Discussion in '2020.1 Beta' started by Hyp-X, Jul 1, 2020.

  1. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    438
    I got the following warning when updating our project from 2020.1.0b13 to 2020.1.0b14
    Is this normal?
    Should I be concerned?

    The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:
    Packages/com.unity.2d.sprite
    Packages/com.unity.2d.sprite/CHANGELOG.md
    Packages/com.unity.2d.sprite/Editor
    Packages/com.unity.2d.sprite/Editor/AssemblyInfo.cs
    Packages/com.unity.2d.sprite/Editor/Interface
    Packages/com.unity.2d.sprite/Editor/Interface/IAssetDatabase.cs
    Packages/com.unity.2d.sprite/Editor/Interface/IEvent.cs
    Packages/com.unity.2d.sprite/Editor/Interface/IGL.cs
    Packages/com.unity.2d.sprite/Editor/Interface/IGUIUtility.cs
    Packages/com.unity.2d.sprite/Editor/Interface/IHandles.cs
    Packages/com.unity.2d.sprite/Editor/Interface/ISpriteEditorDataProvider.cs
    Packages/com.unity.2d.sprite/Editor/Interface/ITexture.cs
    Packages/com.unity.2d.sprite/Editor/Interface/IUndoSystem.cs
    Packages/com.unity.2d.sprite/Editor/ShapeEditor
    Packages/com.unity.2d.sprite/Editor/ShapeEditor/ShapeEditor.cs
    Packages/com.unity.2d.sprite/Editor/ShapeEditor/ShapeEditorRectSelection.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditor
    Packages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteEditorHandles.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteEditorMenu.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteEditorUtility.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteEditorWindow.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteRect.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteUtilityWindow.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/ISpriteEditorModule.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteEditorData.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteFrameModule
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteFrameModule/SpriteFrameModule.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteFrameModule/SpriteFrameModuleBase.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteFrameModule/SpriteFrameModuleBaseView.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteFrameModule/SpriteFrameModuleView.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteFrameModule/SpritePolygonModeModule.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteFrameModule/SpritePolygonModeModuleView.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteOutlineModule.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpritePhysicsShapeModule.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/SpriteSecondaryTexturesModule.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/TextureImporterDataProvider.cs
    Packages/com.unity.2d.sprite/Editor/SpriteEditorModule/TextureImporterDataProviderImplementation.cs
    Packages/com.unity.2d.sprite/Editor/UI
    Packages/com.unity.2d.sprite/Editor/UI/SpriteEditor
    Packages/com.unity.2d.sprite/Editor/UI/SpriteEditor/PolygonChangeShapeWindow.uxml
    Packages/com.unity.2d.sprite/Editor/UI/SpriteEditor/SpriteEditor.uss
    Packages/com.unity.2d.sprite/Editor/UI/SpriteEditor/SpriteFrameModuleInspector.uxml
    Packages/com.unity.2d.sprite/Editor/Unity.2D.Sprite.Editor.asmdef
    Packages/com.unity.2d.sprite/LICENSE.md
    Packages/com.unity.2d.sprite/README.md
    Packages/com.unity.2d.sprite/Tests
    Packages/com.unity.2d.sprite/Tests/Editor
    Packages/com.unity.2d.sprite/Tests/Editor/SpritePackageTests.cs
    Packages/com.unity.2d.sprite/Tests/Editor/Unity.2D.Sprite.Package.EditorTests.asmdef
    Packages/com.unity.2d.sprite/package.json
    Packages/com.unity.2d.tilemap
    Packages/com.unity.2d.tilemap/CHANGELOG.md
    Packages/com.unity.2d.tilemap/Editor
    Packages/com.unity.2d.tilemap/Editor/AssemblyInfo.cs
    Packages/com.unity.2d.tilemap/Editor/CreateTileFromPaletteAttribute.cs
    Packages/com.unity.2d.tilemap/Editor/EditorTools
    Packages/com.unity.2d.tilemap/Editor/EditorTools/BoxTool.cs
    Packages/com.unity.2d.tilemap/Editor/EditorTools/EraseTool.cs
    Packages/com.unity.2d.tilemap/Editor/EditorTools/FillTool.cs
    Packages/com.unity.2d.tilemap/Editor/EditorTools/MoveTool.cs
    Packages/com.unity.2d.tilemap/Editor/EditorTools/PaintTool.cs
    Packages/com.unity.2d.tilemap/Editor/EditorTools/PickingTool.cs
    Packages/com.unity.2d.tilemap/Editor/EditorTools/SelectTool.cs
    Packages/com.unity.2d.tilemap/Editor/EditorTools/TilemapEditorTool.cs
    Packages/com.unity.2d.tilemap/Editor/GridBrush.cs
    Packages/com.unity.2d.tilemap/Editor/GridBrushEditor.cs
    Packages/com.unity.2d.tilemap/Editor/GridBrushEditorBase.cs
    Packages/com.unity.2d.tilemap/Editor/GridBrushesDropdown.cs
    Packages/com.unity.2d.tilemap/Editor/GridEditorUtility.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaintPaletteClipboard.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaintPaletteWindow.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaintPaletteWindowPreferences.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaintSortingAttribute.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaintTargetsDropdown.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaintingState.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaletteAddPopup.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaletteBrushes.cs
    Packages/com.unity.2d.tilemap/Editor/GridPaletteUtility.cs
    Packages/com.unity.2d.tilemap/Editor/GridPalettes.cs
    Packages/com.unity.2d.tilemap/Editor/GridPalettesDropdown.cs
    Packages/com.unity.2d.tilemap/Editor/GridSelection.cs
    Packages/com.unity.2d.tilemap/Editor/GridSelectionEditor.cs
    Packages/com.unity.2d.tilemap/Editor/PaintableGrid.cs
    Packages/com.unity.2d.tilemap/Editor/PaintableSceneViewGrid.cs
    Packages/com.unity.2d.tilemap/Editor/SceneViewGridManager.cs
    Packages/com.unity.2d.tilemap/Editor/TileDragAndDrop.cs
    Packages/com.unity.2d.tilemap/Editor/TileDragAndDropManager.cs
    Packages/com.unity.2d.tilemap/Editor/TileUtility.cs
    Packages/com.unity.2d.tilemap/Editor/Unity.2D.Tilemap.Editor.asmdef
    Packages/com.unity.2d.tilemap/LICENSE.md
    Packages/com.unity.2d.tilemap/README.md
    Packages/com.unity.2d.tilemap/Tests
    Packages/com.unity.2d.tilemap/Tests/Editor
    Packages/com.unity.2d.tilemap/Tests/Editor/TilemapPackageTests.cs
    Packages/com.unity.2d.tilemap/Tests/Editor/Unity.2D.Tilemap.Package.EditorTests.asmdef
    Packages/com.unity.2d.tilemap/package.json
    Packages/com.unity.burst
    Packages/com.unity.burst/CHANGELOG.md
    Packages/com.unity.burst/Editor
    Packages/com.unity.burst/Editor/BurstAotCompiler.cs
    Packages/com.unity.burst/Editor/BurstAotSettings.cs
    Packages/com.unity.burst/Editor/BurstCompileTarget.cs
    Packages/com.unity.burst/Editor/BurstDisassembler.Core.ARM64.cs
    Packages/com.unity.burst/Editor/BurstDisassembler.Core.cs
    Packages/com.unity.burst/Editor/BurstDisassembler.Core.x86.cs
    Packages/com.unity.burst/Editor/BurstDisassembler.cs
    Packages/com.unity.burst/Editor/BurstEditorOptions.cs
    Packages/com.unity.burst/Editor/BurstInspectorGUI.cs
    Packages/com.unity.burst/Editor/BurstLoader.cs
    Packages/com.unity.burst/Editor/BurstMenu.cs
    Packages/com.unity.burst/Editor/BurstReflection.cs
    Packages/com.unity.burst/Editor/LongTextArea.cs
    Packages/com.unity.burst/Editor/Unity.Burst.Editor.asmdef
    Packages/com.unity.burst/LICENSE.md
    Packages/com.unity.burst/Runtime
    Packages/com.unity.burst/Runtime/BurstAliasing.cs
    Packages/com.unity.burst/Runtime/BurstCompileAttribute.cs
    Packages/com.unity.burst/Runtime/BurstCompiler.cs
    Packages/com.unity.burst/Runtime/BurstCompilerOptions.cs
    Packages/com.unity.burst/Runtime/BurstExecutionEnvironment.cs
    Packages/com.unity.burst/Runtime/BurstRuntime.cs
    Packages/com.unity.burst/Runtime/DebugView.cs
    Packages/com.unity.burst/Runtime/DiagnosticId.cs
    Packages/com.unity.burst/Runtime/FunctionPointer.cs
    Packages/com.unity.burst/Runtime/Intrinsics.cs
    Packages/com.unity.burst/Runtime/SharedStatic.cs
    Packages/com.unity.burst/Runtime/Unity.Burst.asmdef
    Packages/com.unity.burst/Runtime/x86
    Packages/com.unity.burst/Runtime/x86/Common.cs
    Packages/com.unity.burst/Runtime/x86/Csr.cs
    Packages/com.unity.burst/Runtime/x86/Sse.cs
    Packages/com.unity.burst/Runtime/x86/Sse2.cs
    Packages/com.unity.burst/Runtime/x86/Sse3.cs
    Packages/com.unity.burst/Runtime/x86/Sse4_1.cs
    Packages/com.unity.burst/Runtime/x86/Ssse3.cs
    Packages/com.unity.burst/Tests
    Packages/com.unity.burst/Tests/Editor
    Packages/com.unity.burst/Tests/Editor/EditmodeTest.cs
    Packages/com.unity.burst/Tests/Editor/Unity.Burst.Editor.Tests.asmdef
    Packages/com.unity.burst/Tests/Runtime
    Packages/com.unity.burst/Tests/Runtime/BurstJobTester.cs
    Packages/com.unity.burst/Tests/Runtime/FunctionPointerTests.cs
    Packages/com.unity.burst/Tests/Runtime/ManagedExceptionsBurstJobs.cs
    Packages/com.unity.burst/Tests/Runtime/NativeTriggeredManagedExceptionsBurstJobs.cs
    Packages/com.unity.burst/Tests/Runtime/PlaymodeTest.cs
    Packages/com.unity.burst/Tests/Runtime/Shared
    Packages/com.unity.burst/Tests/Runtime/Shared/010-NotSupported.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/020-Types.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/030-Expressions.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/031-Pointers.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/035-Functions.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/040-ControlFlows.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/050-TestStructs.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/053-TestConstArrays.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/060-TestEnums.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/070-TestAtomics.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/080-TestSystemMath.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/081-UnityMath.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/082-PartialManaged.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/090-Vectors-BinaryOperators-Float2.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/090-Vectors-BinaryOperators-Float3.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/090-Vectors-BinaryOperators-Float4.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/090-Vectors-BinaryOperators-Int4.cs
    Packages/com.unity.burst/Tests/Runtime/Shared/090-Vectors-Bools.cs
    Packages/com.un
    (Filename: C:\buildslave\unity\build\Modules/PackageManager/Editor/PackageManagerImmutableAssets.cpp Line: 111)
     
  2. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Hey there,

    Thanks for letting us know! We've reported the issue to the team. There is nothing to be concerned about, this sometimes happens when updating a project to a new editor version though but we appreciate why this can be concerning.
     
  3. MichTure

    MichTure

    Joined:
    Aug 1, 2020
    Posts:
    1
    This same issue happened to me today. It happened after I renamed a C# script in my Assets panel. I cannot run the game now.
     
    Bunny-Boo likes this.
  4. Yowich

    Yowich

    Joined:
    Oct 18, 2017
    Posts:
    1
    Same here after upgrading to Unity 2020.1.2f today. Can't run the game.
     
  5. Shaunyowns

    Shaunyowns

    Joined:
    Nov 4, 2019
    Posts:
    328
    Hey there!

    We have a ticket opened internally on the issue, the team will be taking a look!
     
  6. Hakohn

    Hakohn

    Joined:
    Nov 2, 2018
    Posts:
    4
    Any fixes? I am using 2019.4 and I cannot fix the following errors, which seem similar to those posted here:

    2019.4.7f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.2d.sprite\Editor\SpriteEditorModule\TextureImporterDataProvider.cs(77,14): error CS0246: The type or namespace name 'SpriteDataExt' could not be found (are you missing a using directive or an assembly reference?)

    ibrary\PackageCache\com.unity.render-pipelines.core@7.5.1\Runtime\RenderGraph\RenderGraph.cs(310,16): error CS0246: The type or namespace name 'RenderGraphBuilder' could not be found (are you missing a using directive or an assembly reference?)
     
  7. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
  8. _slash_

    _slash_

    Joined:
    Mar 26, 2013
    Posts:
    37
    Having the same error poping up since I've switched from Rider to VSCode, can vscode somehow alter files while indexing or something like that?
     
  9. Hunanbean

    Hunanbean

    Joined:
    Jun 3, 2020
    Posts:
    13
    Same problem with Kinematica 2020.2.0f1 resources. I imported Kinematica into HDRP and updated the materials. I have no access to the materials now to change them, sop i replaced them which works until it refreshs. I mean, basically it behaves like a read only file so i am going to check permissions while you all get this straightened out. I can tell you it is not limited to Kinematica, but no need listing everything as you can see what is happening.
     
  10. togaykurtulus

    togaykurtulus

    Joined:
    Jun 7, 2020
    Posts:
    7
    Is the problem solved? I am using 2020.2 and I install Terrain but the is a issue that is "missing material" of terrain.
     
  11. jteribernardo

    jteribernardo

    Joined:
    Oct 22, 2021
    Posts:
    1
    Me too, it is because of the terrain asset pack. my version is also 2020
    Have you got the solution for this? by any chance
     
  12. Sky_Candy

    Sky_Candy

    Joined:
    Sep 30, 2021
    Posts:
    3
  13. SUfIaNAHMAD_

    SUfIaNAHMAD_

    Joined:
    Jun 19, 2019
    Posts:
    18
    New
    The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:
    Packages/com.unity.textmeshpro/Scripts/Runtime/Unity.TextMeshPro.asmdef
     
  14. KuPAfoo

    KuPAfoo

    Joined:
    Aug 24, 2013
    Posts:
    17
    I'm attempting to modify the
    Code (CSharp):
    1.  public class CinemachineInputProvider : MonoBehaviour, AxisState.IInputAxisProvider
    class with this thread
    https://forum.unity.com/threads/cin...sable-enable-following-mouse-movement.960491/

    it wants me to add
    Code (CSharp):
    1.         if (!Input.GetMouseButton(1))
    2.             return 0;
    to this
    Code (CSharp):
    1. public virtual float GetAxisValue(int axis)
    2.         {
    3.             var action = ResolveForPlayer(axis, axis == 2 ? ZAxis : XYAxis);
    4.             if (action != null)
    5.             {
    6.                 switch (axis)
    7.                 {
    8.                     case 0: return action.ReadValue<Vector2>().x;
    9.                     case 1: return action.ReadValue<Vector2>().y;
    10.                     case 2: return action.ReadValue<float>();
    11.                 }
    12.             }
    13.             return 0;
    14.         }
    but simply adding these two lines of code cause this error.

    and the fun thing is the script automatically reverts.
    looks like some kind of permissions thing.
     
    rubendariohh likes this.
  15. rubendariohh

    rubendariohh

    Joined:
    Oct 14, 2017
    Posts:
    32
    Did you found a solution?
     
  16. URJOHN555

    URJOHN555

    Joined:
    Apr 8, 2021
    Posts:
    1
    Im having the same problem
     
  17. Gunhi

    Gunhi

    Joined:
    Apr 18, 2012
    Posts:
    300
    how to deal with this?
     
  18. bartje86tralala

    bartje86tralala

    Joined:
    Aug 1, 2012
    Posts:
    9
    I have it in 2021.3.25f1 (LTS):

    The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:
    Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipelineResources/HDRenderPipelineRuntimeResources.asset

    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
     
  19. JohnAustinPontoco

    JohnAustinPontoco

    Joined:
    Dec 23, 2013
    Posts:
    283
    Yep, same issue here with the HDRP Sample project on 2022.3.0f1 LTS.
     
    Andresmonte likes this.
  20. VRS3DGuru

    VRS3DGuru

    Joined:
    Sep 21, 2017
    Posts:
    14
    Same issue on 2022.3.0f1 LTS, really annoying, triggers constant package re-importing making the editor very slow due to rebuilding package cache anytime I touch any HDRP, terrain or vfx assets
     
  21. macicka12

    macicka12

    Joined:
    May 13, 2015
    Posts:
    14
    Same on 2022.3.1f1.
     
  22. xyvan

    xyvan

    Joined:
    Jun 21, 2014
    Posts:
    13
    Same issue on multiple package.
     
  23. kerzel

    kerzel

    Joined:
    Jan 20, 2021
    Posts:
    1
    Unity 2022.2.21f1 and 2022.3.1f1 keep having issues with HDRP.
    Code (CSharp):
    1. The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:
    2. Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipelineResources/HDRenderPipelineRuntimeResources.asset
    Unity 2022.2.10f1 seems to be fine.
    Creating a Core 3D project and then adding HDRP manually also produces the same issue.
     
    Andresmonte likes this.
  24. anomas

    anomas

    Joined:
    Jul 3, 2016
    Posts:
    47
    Same here!
     
    Andresmonte likes this.
  25. pbritton

    pbritton

    Joined:
    Nov 14, 2016
    Posts:
    160
    I am having the same issue in 2022.3.0f1
     
    Andresmonte likes this.
  26. VRS3DGuru

    VRS3DGuru

    Joined:
    Sep 21, 2017
    Posts:
    14
    Its pretty annoying. Did anyone submit a bug on this yet so that Unity sees the issue? I have not. We're buried in one of the thousands of threads and millions of users here, they wont see it without bug submit
     
    Andresmonte likes this.
  27. jperman8

    jperman8

    Joined:
    Oct 28, 2019
    Posts:
    7
    Same here. Any update? This was going from latest lts to tech stream, and now I constantly get it even after full reimport.

    'The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:
    Packages/com.unity.render-pipelines.universal/Runtime/Materials/Sprite-Lit-Default.mat'
     
  28. JohnAustinPontoco

    JohnAustinPontoco

    Joined:
    Dec 23, 2013
    Posts:
    283
    Yeah this is probably being overlooked because the thread is on the 2022.1 beta.
     
  29. pengyq

    pengyq

    Joined:
    Aug 4, 2021
    Posts:
    5
    I am having the same issue in 2021.3.29f1.

    I find a workable solution: find your Editor.log and search for "immutable" to find logs like this:

    "The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:
    Packages/com. Unity. Testtools. Codecoverage/Editor/Icons/codecoverage. PNG "


    The packages listed here is the cause of PackageManager infinite resolving. Just remove these Packages from the PackageManager (or find package name in mainfest.json, since some of packages do not show in package manager), than all seems to be fine. I'm not sure why, but it does work for me.