Error CS0246 from Unity generated code using Unity 6 LTS on blank project. (Yes the new Input System is installed)

Hi all,

I’m starting a new project in Unity 6 on macOS (2022.3.44f1, silicon) and I can’t get the new Input System (v 1.7 which is the highest shown in the package manager) working and it appears to either be a bug, or something isn’t getting set by default.

I started a new project, installed the input manager, set up some basic controls in the Input Action Asset, saved it,

told it to generate the C# file, and without any further code changes I get:

“Assets/Input/Controls.cs: error CS0246: The type or namespace name ‘InputAction’ could not be found (are you missing a using directive or an assembly reference?)”

Seeing how as this code is autogenerated by Unity I feel this is a bug unless there’s some setting I’m supposed to set somewhere. Suggestions online point to menu options no longer there.

Anyone have any thoughts/suggestions?


This is not a version of Unity 6. Unity 6 releases are of the form 6000.0.x.

Input System 1.7.0 is an old version. The latest release is 1.11.2. The package manager may not show newer releases if the package release wasn’t verified for the editor. You can install different package versions manually.

Omg I’m an idiot. I don’t know how it happened but I was opening a Unity 6 project in a version I thought I uninstalled facepalm.

It’s time for bed at this point, thank you for your assistance :slight_smile: