I’ve been following this guide, but am struggling to get any response from my keyboard or xbox controller
https://docs.unity3d.com/Packages/com.unity.inputsystem@0.9/manual/Components.html
Here’s what I did:
- Create a 2d sprite component to the scene
- Add Component and select Player Input
- Click “create actions”
- Add a new script to the sprite component
- Edit the script to be exactly the same as MyPlayerScript, as shown in the guide
- Change the OnFire() and OnMove() functions to print something to the console.
- Run the scene, and try every keyboard and controller input I can think of.
Has anyone had success in detecting events using Player Input? What did I miss?