Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Assets\Scripts\InputHandler.cs(43,30): error CS1061: 'PlayerControls' does not contain a definition for 'PlayerMovement' and no accessible extension method 'PlayerMovement' accepting a first argument of type 'PlayerControls' could be found (are you missing a using directive or an assembly reference?)

What I have tried:

Everything I can find on the web
Posted
Updated 14-Jul-22 11:57am
Comments
Richard MacCutchan 15-Jul-22 3:35am    
What is 'PlayerControls' an instance of? Whatever it is you just need to look at the documentation for that class to see why the error occurs.

1 solution

You will not find a fix for this anywhere on the web.

This is a problem where you're trying to execute a method or property, "PlayerMovement", on a "PlayControls" object that does not exist.

If you're running into this from a book or something, you've missed something earlier in the book, or whatever you're following, having to with a class called "PlayerMovement".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900