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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    421
    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 Unity Technologies

    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

    Unity Technologies

    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,022
  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:
    16
    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:
    19
    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:
    296
    how to deal with this?