Learn how to create a First Person Controller in Unity using the latest Input System in this step-by-step tutorial. Perfect for beginners and intermediate Unity developers, this video walks you through setting up movement, mouse rotation, jumping, and sprinting.
We’ll cover:
- Installing Unity’s Input System (v1.7.0) and fixing a common bug.
- Creating an Input Action Asset to handle player controls.
- Configuring movement keys (WASD) and mouse look for smooth gameplay.
- Setting up jump and sprint mechanics using button actions.
- Building a character controller to handle collisions and movement physics.
- Writing C# scripts to manage input events and player movement.
- Adding a camera controller to create an FPS-style experience.
By the end of this tutorial, you’ll have a fully functional First Person Controller ready to use in your Unity projects!
💾 Scripts and Project Files: https://www.dropbox.com/scl/fi/p4rk1595n1299a9xc1fkv/FirstPersonController.zip?rlkey=9hlmcco279y3spp5ptz5rbcvl&st=865mduvw&dl=0
🎯 Unity Version Used: 2022.3.12f1
📱 Follow me on X: https://x.com/brockoshvideos
🔔 Subscribe for more Unity tutorials, and let me know what topics you’d like me to cover next!
CHAPTERS:
00:05 Installing latest input system
00:40 Fixing bug in input system
00:59 Input Action Asset set up
03:17 Player set up
04:31 PlayerInputHandler creation
11:26 FirstPersonController creation
20:32 PlayerInputHandler and Controller set up
21:04 Complete first person controller