error CS0117: 'InputSystem' does not contain a definition for 'actions'? :?

the code is this one here

https://docs.unity3d.com/Packages/com.unity.inputsystem@1.8/manual/RespondingToActions.html

aparently

InputSystem.actions.FindAction(“Move”);

should work. but it doesn’t

it says that

error CS0117: ‘InputSystem’ does not contain a definition for ‘actions’

Probably because it was only added in 1.8, and you are probably using an older Input System version.

I’m on 2022.3.21f1 and indeed I’ve checked and the version is 1.7. Can’t seem to find a way to update. The link I’ve posted states it works from 2019+ but maybe the 1.8 works only on the 2023? I don’t have it installed that version to check.

I’ve assumed it was always like that, with the workflow.

I’m looking at a bunch of tutorials and I’ve figured out a way to make it work. But is this something new more streamlined?

https://docs.unity3d.com/Packages/com.unity.inputsystem@1.8/changelog/CHANGELOG.html

is not clear if it works on any other version that 2023.2

https://docs.unity3d.com/Manual/upm-ui-quick.html

Specify version number here.

You should be able to install by name using the right version, or modify the package manifest for your project.

In any case I haven’t used this API though looks to be part of the project wide actions as part of the 1.8 update: Project-Wide Actions - 1.8.0-pre.2 release - Feedback wanted - new update released

Kinda have my own system for this already anyway.

well it doesn’t show up in the package manager only the 1.7 is there

however, I don’t want to manually install it. is not that the older version doesn’t work for the simple project I’m testing. curios they didn’t pushed the update if is supported on this version.

You’re not manually installing it. You’re simply overriding the default version which as you’ve noticed isn’t the latest version and that’s often the case in my experience. For example my work project on 2023.1 defaults to 1.7.0.

sorry, I was trying to say that the project is not so important that I need to override it manually. I will try with a new project or maybe just download the latest version of unity, more recent one.

just got confused why the code didn’t worked, there was nothing online which got even more confused, then we found is something relatively new and that unity doesn’t have the last update.

Unity always did this since the PM existence. They are only enable a package version for a specific Unity version if they tested it (well, that’s the theory and supposed workflow). I guess Q&A was also laid off, so testing is slower than ever before. But in theory nothing should stop you to install it “manually” like this, it should work, generally.

I’m on 1.13 of the package and still have this issue