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 InputSystem does not contain a definition for SaveAndReset

Discussion in 'Scripting' started by JJNCreator, Jul 17, 2023.

  1. JJNCreator

    JJNCreator

    Joined:
    Jul 3, 2012
    Posts:
    26
    Getting an error out of the blue when trying to build Addressables relating to the Input System. Worked perfectly fine prior to the time of writing. Updated everything in the Package Manager (except Addressables).

    Screenshot 2023-07-17 133358.png

    Unity 2020.1.15f1
    JetBrains Rider package 3.0.24
    Input System 1.6.3
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
    This is an excellent first step... this is an even-excellenter second step:

    Extra unwanted packages in new projects (collab, testing, rider and other junk):

    https://forum.unity.com/threads/temp-unityengine-testrunner-dll-error.1133938/#post-7287748

    About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the Packages/manifest.json file as outlined in the above post, then reopen Unity.

    Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

    https://stackoverflow.com/questions/53145919/unity3d-package-cache-errors/69779122
     
  3. JJNCreator

    JJNCreator

    Joined:
    Jul 3, 2012
    Posts:
    26
    I was able to fix the issue by reverting my package changes in source control. Probably more of a workaround than an actual solution, but it works for now.
     
    Kurt-Dekker likes this.