Fixes – InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings

URP Setup Guide for Unity Beginners

Fixes – InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings

✅ If you encounter these errors in Unity 6 or later, please follow these steps:

  1. The error mainly occurs in Unity 6 or later due to the New Input System pre-installed when you create a new project in these versions.

  2. ✅ Solution 1:

    The Quick Fix: Enable Both Input Systems

    The simplest and often most practical solution, especially when working with mixed assets, is to tell Unity to support **both** the new Input System and the old Input Manager simultaneously. Here’s how:

    1. Navigate to **Edit > Project Settings** in the Unity editor.
    2. In the Project Settings window, select the **Player** category from the left-hand menu.
    3. Scroll down to the **Other Settings** section, and then locate **Configuration**.
    4. Find the dropdown menu for **Active Input Handling**. Change its value from `Input System Package (New)` to **Both**.
    Unity Project Settings Active Input Handling set to Both

    Changing “Active Input Handling” to “Both” in Project Settings.

    Unity will then prompt you to restart the editor. Click **Apply** or **Restart** (depending on your Unity version) to apply the changes and relaunch Unity.

    Why This Works

    By setting “Active Input Handling” to “Both,” you inform Unity that it should allow scripts to interact with input using either the `UnityEngine.Input` class (old system) or the classes provided by the new Input System package. This resolves the `InvalidOperationException` by removing the conflict.


    ✅ Solution 2 (for old version of JRS Vehicle Physics Controller):

  3. Go to Window and click on Package Manager

  4. package-manager-settings
  5. Under Unity Registry search for Input System and click on Remove

  6. package-manager-settings-2
  7. After removing the pre-installed Input System click on Restart the Editor , the error will disappear, and Unity will read the input using the UnityEngine.Input class.

🏝️⛰️ Terrain Assets Collection: Compatible with (Terrain Generator)

Please Check out.. our Asset Store page if you need any other Asset Pack

Compatible with Tileable 3d Terrain Generator Asset Store Link

✉️ Contact Us

Website: www.jermesa.com

Mail: support@jermesa.com

WhatsApp: https://wa.me

Instagram: jermesa_studio

Twitter: @Jermesastudio

Discord: https://discord.gg

AssetStore: assetstore.unity.com

YouTube: www.youtube.com

LinkedIn: jermesa-studio

AssetStoreLink: assetstore.unity.com

Leave a Reply

Your email address will not be published. Required fields are marked *