- Home /
Question by
manassjoshi · Jan 13, 2021 at 08:12 AM ·
movementinputcontroller
New Input System for Controller is not able to work with autogenerated C# class file Unity 2018.4
I am getting the following error: NullReferenceException: Object reference not set to an instance of an object PlayerControls.Initialize () (at Assets/PlayerControls.cs:22)
I am trying to move my player, but the autogenerated C# Class File for the Input Action Asset is not working or has some bug. I tried changing the code of the C# Class file but no good there. I am getting this huge headache because of this.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613023212im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How do I listen for Input from joystick/buttons on a controller? 1 Answer
Speed pickup 1 Answer
Gradual Speed Increase with Variable Input 0 Answers
My Players speed differs depending on the input method (gamepad or keyboard) 1 Answer