Immutable asset(s) were unexpectedly altered

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)

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.

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.

1 Like

Same here after upgrading to Unity 2020.1.2f today. Canā€™t run the game.

Hey there!

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

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?)

Hi @Hakohn ,

The original issue of the thread is being worked on. However, the errors you mentioned are unrelated to that and point to compilation errors. It looks like you might be missing a package from your project. Iā€™d recommend that you open a new thread about this in the Package Manager forum and include your log files as described here How to expedite support/help request in this forum? - Unity Engine - Unity Discussions.

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?

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.

Is the problem solved? I am using 2020.2 and I install Terrain but the is a issue that is ā€œmissing materialā€ of terrain.

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

Iā€™m having a similar problem as described here: Universal RP v.12.1.1 C# issue. Upgrade to 2021.2.4f1: error CS1525: Invalid expression term ')'

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

Iā€™m attempting to modify the

 public class CinemachineInputProvider : MonoBehaviour, AxisState.IInputAxisProvider

class with this thread

it wants me to add

        if (!Input.GetMouseButton(1))
            return 0;

to this

public virtual float GetAxisValue(int axis)
        {
            var action = ResolveForPlayer(axis, axis == 2 ? ZAxis : XYAxis);
            if (action != null)
            {
                switch (axis)
                {
                    case 0: return action.ReadValue<Vector2>().x;
                    case 1: return action.ReadValue<Vector2>().y;
                    case 2: return action.ReadValue<float>();
                }
            }
            return 0;
        }

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.

1 Like

Did you found a solution?

Im having the same problem

how to deal with this?

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 ()

2 Likes

Yep, same issue here with the HDRP Sample project on 2022.3.0f1 LTS.

1 Like

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

4 Likes