How to use NEW Input System Package! (Unity Tutorial - Keyboard, Mouse, Touch, Gamepad)

preview_player
Показать описание
👍 Learn how to make BETTER games FASTER by using all the Unity Tools and Features at your disposal!
👇
👍 Learn to make awesome games step-by-step from start to finish.

💬 Let's learn how to use the new Input System Package.
This is much better than the legacy Input Manager, it makes you write much cleaner code and makes it easily support any input type so your games are automatically playable with Keyboard and Mouse or Touch or Xbox/Playstation/Switch gamepad!

👍 Learn how to make BETTER games FASTER by using all the Unity Tools and Features at your disposal!

00:00 How to use the Input System Package
00:34 Ultimate Unity Overview Course
01:41 Installation
02:00 Legacy Input Manager Vs New Input System
02:46 Create New Input Action Asset
05:00 Action Bindings
06:35 Player Input Component
09:24 Input System Phases
11:16 Invoke C# Events
13:12 Interactions
14:55 Processors
15:36 Generate C# Class
18:40 Movement Action (Value)
23:05 Reading Input Action on Update
24:28 Multiple Input Types, Keyboard, Gamepad (Control Schemes)
28:24 Stick Deadzone Processor
30:50 Pass Through, Disambiguation
32:10 Default Create Input Actions
32:50 Compact Input Test
34:00 Change Action Map
37:05 Input Debugger
38:10 Button Remapping
42:48 Touch controls
44:45 How to use the Input System Package

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity #gamedev #unity3d #unity2d #indiegame​ #gamedevelopment #madewithunity​ #indiedev​

--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.

I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.

--------------------------------------------------------------------
- Other great Unity channels:
--------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

💬 Here's the much requested Input System video! It's a long video but it will teach your everything you need to know!
👍 Learn how to make BETTER games FASTER by using all the Unity Tools and Features at your disposal!

CodeMonkeyUnity
Автор

19:44 - If you're using Unity 2022.1, it should say `Add Up/Down/Left/Right Composite` and it functions exactly the same way as in the video

MichaelSpectre
Автор

Hugo, I don't know if you'll see this message, but I've been desperately looking for tutorials of this kind. When I saw you, I was like, "Oh, Hugo! I knew I could always count on him!", and I was right. Immediate value. I love you so much, Hugo.

facelessanon
Автор

2 hours searching for a good explaination,
Sir, you explain in details, in a way that anyone can understand
Thanks so much

taash
Автор

Thank you so much for making a full dedicated video on the new Input System, I watched Brackeys tutorials but they were outdated until your ad caught my attention to which lead me here... The best ad I've ever clicked! Thank you! :D

anuj-
Автор

Just recently started getting back into Game Development and this guide was brilliant. It didn't just show the 'one true' way, but instead provided options and actually lets you make a decision for which solution is best for your project.

leestevens
Автор

I'm about 1 3rd of the way in and this is a fantastic tutorial, he explains not just whats going on but why, and shows lots of other ways to do things.

pablose
Автор

If you only want to move along the 4 axis (up, down, left, right) and not diagonally or anything in between you should use two Vector1 Composites, one for horizontal and another for vertical movement, instead of the Vector2 Composite for all of them. Right click in the middle of the bar to display more options instead of clicking on the '+' icon. This will be equivalent to the 'GetAxisRaw()' present in the previous input system.

freakymundo
Автор

I was learning unity but I gave up because I couldn't find a good tutorial on the new system. I decided to come back and watched your video and immediately understood how it works

miroslaugh
Автор

This new input system is great, and you made it very easy to understand with this video. Also I like the fact that you added timestamps so that viewers can easily navigate through different parts. Thank you so much for your work!
I'm currently working on rebinding the keys, hopefully everything will go according to the plan :D

okito
Автор

Im watching this in 2024 and is still by far the most coherent tutorial. There are so many tutorials, each demonstrating a different way of doing it. This by far is the best!

nedmadigan
Автор

I am really very grateful for this tutorial, I have looked at others and none like this one, almost 1 hour but it has made me very enjoyable since everything is so well explained that it is spectacular. Really thank you very much for your tutorials, keep it up and I hope you never leave it because you are a teacher like very few

garbeGD
Автор

This has answered SO many of my questions regarding the new Input System. Definitely added to my bookmarks :)

brendonleenheer
Автор

Finally a tutorial that actually explains how the system works considering that you probably don't know how it works

SantanaOnYoutube
Автор

Thank you for explaining everything in depth, everyone else just show theories - no practical examples involved.
Unity's official documentation is horribly confusing.

michaelsong
Автор

The new input system takes a while to get your head wrapped around but once you do it's actually much better structured than the old system. Being able to map actions like that on the visual asset saves time in not having to create your own input manager class when switching between action types (movement, driving, UI) etc. Thank you for this video!

giovannazanella
Автор

I think what I really don't like about this new input system is that there's seemingly a thousand different ways to implement the same functionality. Every tutorial I watch about the new Input System has largely the same premise (adding movement and jump) but each one does it in a different way. This tutorial helped me understand enough to make my own in a way that I'm happy with, but even in this video you show multiple ways to essentially add the same functionality either through the Player Input component, or generating the C# class, using Unity Events or C# Events, then other videos have people adding inputs by defining them directly in the script by adding Input Action components to their controllers, but there's not really any explanation of why one way should be used over another, if there's a reason at all.

Kyle-ynhy
Автор

from Input to DOTS, this should be the official unity tutorial channel!!!

KimboKG
Автор

Absolutely perfect. There's maybe one thing that could be added but it's a bit of a specific case: in Top Down games on desktop, players can perform 'Screen Edge Panning'. This interaction is not in the default and so it requires a code with IInputInteraction - it's not user-friendly at the moment and pretty hard to do, maybe a future update will make that kind of feature easier to add?

cradle_of_chaos
Автор

If anyone has an issue where you get a ton of errors related to vJoy which causes the new input system to not function properly, you can fix this by enabling preview packages and grabbing version 1.1.0 preview 5 for the input system. This version has a patch for vJoy and is at least available for unity version 2020.2.0f1, probably others as well.

AlecAndersonZx