Hi everyone!
I am currently on the first video within the Player Movement section of the new Unity 2D RPG: Complete Combat System and am experiencing the following error during compilation/runtime:
“‘PlayerControls’ does not contain a definition for ‘Movement’ and no accessible extension method ‘Movement’ accepting a first argument of type ‘PlayerControls’ could be found (are you missing a using directive or an assembly reference?)”
. . . which is referring to the following line in my respective C# player class:
movement = playerControls.Movement.Move.ReadValue();
I’ve created the Player Controls class as the byproduct of importing the new “Input System” package into my project, and creating the new ‘Input Actions’ object. I elected to auto generate the C# class as instructed, and can see in the editor that the C# class name is in fact “PlayerControls” for my Input Action asset.
I also went into the project files in Gitlab and made sure my line of code is identical, in addition to re-booting Unity and the project.
Any guidance or support would be much appreciated!