Тёмный

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

Code Monkey
Подписаться 536 тыс.
Просмотров 446 тыс.
50% 1

✅ Get the FULL course here at 80% OFF!! 🌍 unitycodemonke...
👍 Learn how to make BETTER games FASTER by using all the Unity Tools and Features at your disposal!
👇
🌍 Get my Complete Courses! ✅ unitycodemonke...
👍 Learn to make awesome games step-by-step from start to finish.
🎮 Get my Steam Games unitycodemonke...
💬 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!
✅ Get the FULL course here at 80% OFF!! 🌍 unitycodemonke...
👍 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.
🔔 Subscribe for more Unity Tutorials / @codemonkeyunity
See you next time!
📍 Support on Patreon / unitycodemonkey
🎮 Grab the Game Bundle at unitycodemonke...
📝 Get the Code Monkey Utilities at unitycodemonke...
#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.
You can see my games at www.endlessloopstudios.com
--------------------------------------------------------------------
- Other great Unity channels:
Unity - / unity3d
Brackeys - / brackeys
Dani - / @danidev
Jabrils - / @jabrils
BlackthornProd - / @blackthornprod
Sykoo - / sykootv
Jason Weimann - / @unity3dcollege
Jonas Tyroller - / @jonastyroller
--------------------------------------------------------------------
- Website: unitycodemonke...
- Twitter: / unitycodemonkey
- Steam: store.steampow...

Опубликовано:

 

17 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 694   
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
💬 Here's the much requested Input System video! It's a long video but it will teach your everything you need to know! ✅ Get the FULL course here at 80% OFF!! 🌍 unitycodemonkey.com/courseultimateoverview.php 👍 Learn how to make BETTER games FASTER by using all the Unity Tools and Features at your disposal!
@gabrielaguiar5984
@gabrielaguiar5984 3 года назад
im trying make a simple "mouselook" script but im not getting anything you can make a video about it?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
@@gabrielaguiar5984 You can download the official Starter Assets and see how it works ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jXz5b_9z0Bc.html
@DouglasPurdy333
@DouglasPurdy333 2 года назад
This is pretty good. Thanks for sharing.
@azeragaming
@azeragaming 2 года назад
great job, for the video but i was wondering dose it work in the 2d platformer style or is it a 3d method i m new at unity nd c# so i m not sure about it
@badalah8272
@badalah8272 2 года назад
Already your udemy student
@MichaelSpectre
@MichaelSpectre 2 года назад
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
@facelessanon
@facelessanon Месяц назад
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.
@CodeMonkeyUnity
@CodeMonkeyUnity Месяц назад
Nice! I'm glad the video helped!
@Stoffelcopter
@Stoffelcopter Год назад
For anyone facing the issue where the PlayerInputActions variable type created at 23:25 does not seem to exist, you need to click Generate C# Class in the inspector of your Input Actions.
@anuj-1659
@anuj-1659 3 года назад
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
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
I'm glad you liked the video! Thanks!
@taash32
@taash32 2 года назад
2 hours searching for a good explaination, Sir, you explain in details, in a way that anyone can understand Thanks so much
@okito7667
@okito7667 2 года назад
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
@leestevens3226
@leestevens3226 Год назад
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.
@CodeMonkeyUnity
@CodeMonkeyUnity Год назад
I'm glad you liked the video! Thanks!
@freakymundo
@freakymundo Год назад
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.
@lordofthe6string
@lordofthe6string Год назад
Why?
@freakymundo
@freakymundo Год назад
@@lordofthe6string It's hard to handle multiple 4-axis inputs in a 2D Vector Composite since it will lead to decimal values. With two Vector1 Composites you only need to handle the values of 1 and 0 in both horizontal and vertical axis. Much easier imo. No extra math involved.
@garbeGD
@garbeGD 2 года назад
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
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I'm glad the video helped you! Thanks!
@pablose6986
@pablose6986 Год назад
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.
@CodeMonkeyUnity
@CodeMonkeyUnity Год назад
I'm glad the video helps! Thanks!
@brendonleenheer
@brendonleenheer 3 года назад
This has answered SO many of my questions regarding the new Input System. Definitely added to my bookmarks :)
@miroslaugh
@miroslaugh 2 года назад
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
@giovannazanella
@giovannazanella 2 года назад
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!
@Kyle-yn5hy
@Kyle-yn5hy 3 месяца назад
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.
@SalmanKhan-dx1ch
@SalmanKhan-dx1ch 2 месяца назад
Bro, I can understand your frustration Because thats exactly how i felt in the beginning. But having open-ended approaches for simple inputs is actually a good thing. and this input system's strength. Being able to implement input by either components Or writing your own codes makes this system both beginner freindly, and professional friendly Its better to adapt to this input system over the last one Atleast if you're practicing for pc and console games
@bekirkagankaraahmetoglu4343
@bekirkagankaraahmetoglu4343 Месяц назад
They explain it in their wiki so this is intended. They say they wanted the system to have multiple workflows unlike the old one.
@SantanaOnYoutube
@SantanaOnYoutube 3 года назад
Finally a tutorial that actually explains how the system works considering that you probably don't know how it works
@michaelsong741
@michaelsong741 2 года назад
Thank you for explaining everything in depth, everyone else just show theories - no practical examples involved. Unity's official documentation is horribly confusing.
@KimboKG14
@KimboKG14 2 года назад
from Input to DOTS, this should be the official unity tutorial channel!!!
@whyme5431
@whyme5431 3 года назад
Please do more dots tutorials.
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Yeah it's been on my to-do list to get back to DOTS for quite a while now Since I've just finished the course update hopefully I should have more time this next month!
@dreamterrormaster
@dreamterrormaster 3 года назад
@@CodeMonkeyUnity are your dots tuts from ~2 years ago still good practice? Or did unity change too much meanwhile?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
@@dreamterrormaster I haven't touched DOTS in over a year so no idea how much has changed since then. I don't think the base framework has changed so those videos are still good for learning how to think like DOTS, how to organize multiple components, use the job system, etc. Just the syntax may be outdated.
@bugge1947
@bugge1947 3 года назад
I thought I knew a lot about the New Input System but oh boy was I wrong. This was an excellent lecture and I learned a bunch. I really enjoy your content. You're like a more advanced Brackeys which is great! I always look forward to your videos like this one. Please keep up the good work it really helps me and many other developers:)
@nedmadigan8236
@nedmadigan8236 2 месяца назад
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!
@CodeMonkeyUnity
@CodeMonkeyUnity 2 месяца назад
I'm glad the video is still helpful! Thanks!
@havendewart
@havendewart 3 года назад
Your tutorials are the perfect pace and you’re super good at explaining everything. Thanks for doing what you do!
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Many thanks! I'm glad you like the videos!
@AlecAndersonZx
@AlecAndersonZx 3 года назад
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.
@JacobS-rh7tb
@JacobS-rh7tb 3 года назад
A bit steep learning curve but once you get the hang this new system is outstanding! Thanks for the video, great as always!
@smokingheadstudiogerman5299
@smokingheadstudiogerman5299 2 года назад
never understand. lot of PPL like this shit, i really hate it. I see 0 Scene in.
@cradle_of_chaos
@cradle_of_chaos 3 года назад
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?
@dreamterrormaster
@dreamterrormaster 3 года назад
I just used an action type value with control type vector2 and put a binding on pointer position. Then linked the action to a function in my camera script like: public void OnMouseMove(InputAction.CallbackContext value) { Vector2 mousePosition = value.ReadValue(); _mouseMovement = Vector3.zero; if (mousePosition.x < _screen.x * 0.02f) _cameraMovement.x = -1; else if (mousePosition.x > _screen.x * 0.98f) _cameraMovement.x = 1; if (mousePosition.y < _screen.y * 0.02f) _cameraMovement.z = -1; else if (mousePosition.y > _screen.y * 0.98f) _cameraMovement.z = 1; } where _screen is defined in the awake function like: _screen = new Vector2Int(Screen.width, Screen.height); and _cameraMovement is a vector3 that is used in the LateUpdate function to move around the camera. Not sure if that is the best way, but it works :)
@cradle_of_chaos
@cradle_of_chaos 3 года назад
@@dreamterrormaster That's awesome! Thanks a lot for taking the time to explain how you did it. I just implemented it and it works perfectly.
@alexgeeves7096
@alexgeeves7096 3 года назад
@@cradle_of_chaos Brackeys has a video on RTS cameras that shows how to do it really simply too
@yudnai5577
@yudnai5577 Год назад
The most detailed tutorial I've seen about the new input system. Very good job :)
@CodeMonkeyUnity
@CodeMonkeyUnity Год назад
I'm glad you liked it! Thanks!
@aussieraver7182
@aussieraver7182 2 года назад
I was annoyed when I heard Unity's input system was being updated. But wow! It's so convenient. Thanks for the tutorial mate!
@ChibachiTV
@ChibachiTV 3 года назад
I haven't even began to watch this yet and I know I already love you for it.
@castlecodersltd
@castlecodersltd Год назад
I'm really enjoying binging on your videos. I've enjoyed them all. I bought your course and I'll do that at some point. The only thing missing from this video, for me, was in the rebinding - checking whether a key/button/etc was already in use. Bar far the most useful, in-depth delve into this subject, that I've seen, though. Thank you
@harethalamer6964
@harethalamer6964 2 года назад
I don't even skip your ads and I watch them completley to support you
@jlam1703
@jlam1703 2 года назад
I finally understood this new system thanks to your video. Thank you very much!❤
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I'm glad you liked the video! Thanks!
@cugames1676
@cugames1676 2 года назад
Best Unity Input tutorial out there, such a confusing topic , thanks
@Dinya7T
@Dinya7T 3 месяца назад
He replies to people even after 2 years.. What a legend
@CodeMonkeyUnity
@CodeMonkeyUnity 3 месяца назад
I try!
@vystrax
@vystrax 2 года назад
Subscribed, liked and added this video for quick reference. I love that you cover all the ways to use the Input system, not just limited to the simplest examples. So many other videos theorize or simplify content. You avoid the trap of making people type along with you for no reason, and instead teach people why you'd pick one solution over another and make this an invaluable reference.
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I'm glad you liked the video! Thanks!
@regular-user
@regular-user Год назад
You are a life saver and I will check out your tutorials on youtube and courses. I was using the old input system which was doing the job just fine, but I also want to implement gamepad without all the extras and the new input system makes that so much easier.
@CodeMonkeyUnity
@CodeMonkeyUnity Год назад
Thanks! I'm glad you found the video helpful!
@joshuaesmero9579
@joshuaesmero9579 2 года назад
Thank you, I've only watched 15 min so far, and this is already the best tutorial I've watched so far, and I've watched quite a lot for this new input system lol.
@natr4536
@natr4536 5 месяцев назад
Thank you for the help and explaining the Input System. I enjoyed the fact you showed us different ways to get the same result. Thank you again, I plan on watching many more videos and classes by you.
@urielcobo-cuisana2316
@urielcobo-cuisana2316 3 года назад
thank you so much! kinda sad knowing that brackeys will never post a video about this, but I'm so glad i found your channel. thanks!
@sahilsharma2867
@sahilsharma2867 3 года назад
I have liked the video And I am going for sleep Will watch it tomorrow 😂😂😂😉huge fan sir
@mehdibadaoui1658
@mehdibadaoui1658 3 года назад
Thank you so much, I really wish this video existed a few months earlier but i will definitely be coming back to it in the future
@CowboyRoy
@CowboyRoy 3 года назад
Couldn’t be better timing! I searched for tutorials earlier this morning! Thank you!
@abhisheksuper20
@abhisheksuper20 2 года назад
amazing video!! covered all the essential topics with just the right amount of time and content for each topic!!
@hideyboishit
@hideyboishit Год назад
This video is literally exactly what I needed.
@thelazyspot1804
@thelazyspot1804 3 года назад
Needed this so bad, thanks man!
@prodtech20
@prodtech20 3 года назад
This will help me as hell! When will the third person shooter Tutorial, come out? 🤩😍
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
I'm almost done with that one, hopefully it will be out next week.
@prodtech20
@prodtech20 3 года назад
@@CodeMonkeyUnity Thank you really much 😍👊
@ayushsidam289
@ayushsidam289 2 года назад
Thanks CodeMonkey Sir for providing your wisdom. I'm trying this for 2 days and now I got the trick to do this.. 😇🙏🏻
@PerHornshjSchierbeck
@PerHornshjSchierbeck 2 года назад
Great content overall Mr. Code Monkey :) I especially liked this input system video. I kept wishing for specific information and you kept providing the answers.
@halfbakedproductions7887
@halfbakedproductions7887 Год назад
I like the new system. There's much less clutter in your own code and the delegate-based system feels more slick than the endless slew of if statements you were previously stuck with. That, and it's more configurable for the player and MUCH easier to change the controls based on context, e.g. walking or driving.
@FiBunnyCci
@FiBunnyCci Год назад
Finally someone explain the input phases, thank u!
@cotaku7325
@cotaku7325 Год назад
I have learned so much from your video, thank you so much for uploading it, you are a very great teacher for me
@kerbalette156
@kerbalette156 2 года назад
Another awesome tutorial just like the courses you offer! Thanks matey!
@_CloudyBunny
@_CloudyBunny 3 года назад
Thank you so much for this detailed tutorial. I always have a hard time using the input system. This video is really helpful! Love you
@kylyu5472
@kylyu5472 Год назад
Thank you so much for the great tutorial! I have a newfound respect for the Input system.
@darkainsoul
@darkainsoul 2 года назад
Amazing content, I'm buying right now the course.
@Patricebrouh
@Patricebrouh 2 года назад
Wow! Thank you so much. Thanks to this video, I understand how to use Unity New Input System. Thanks
@tidragolol4438
@tidragolol4438 2 года назад
My InputSystem doesnt show me the onActionTriggered function anyone got a fix for that
@JerryKeys
@JerryKeys 2 года назад
Wow, thank you for this compact & very informative overview!
@andrewalexart
@andrewalexart 2 года назад
man, thank you a lot for your tutorials!
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I'm glad they've helped you! Thanks!
@ResoluteLemon
@ResoluteLemon 2 года назад
Hi Code Monkey, at 23:10, where you were talking about reading input action on update, you were using the C# class method. Can this be done with the Player Input component too? If so, could you show us how? Thank you.
@Dehakuzo
@Dehakuzo 2 года назад
I was wondering the same.
@nuevageneracionba
@nuevageneracionba 2 года назад
Late response but you can save the Vector2 in a variable and then use it in the update similar to this: private Vector2 direction; void FixedUpdate() { rb.MovePosition(direction); } public void Move(InputAction.CallbackContext context) { direction = context.ReadValue(); }
@willpetillo1189
@willpetillo1189 2 года назад
@@nuevageneracionba Thank you! Not including continuous holding in the UnityEvent-based messaging seems to be a major hole in the new input system, but this a great workaround!
@TheSpeep
@TheSpeep Год назад
Yeah honestly, kind of the main thing I need to know right now, wouldve been quite nice to have...
@juice1884
@juice1884 3 года назад
Great video, but you should have touched on local multiplayer. I still find it very poorly documented how the Input System actually differentiates between multiple PlayerInput components, seeing as you can use all connected devices on a single PlayerInput component at once.
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Yeah the video was already insanely long so I thought I'd leave that topic for another video. Unity themselves actually made some videos on that topic ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5tOOstXaIKE.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xF2zUOfPyg8.html
@izeckx
@izeckx 3 года назад
Thank you for this. I haven't finished watching it, yet, but I know I'm about to learn a lot. Thank you
@chevn9260
@chevn9260 2 года назад
Thanks, learned how to use it
@Dahxelb
@Dahxelb 7 месяцев назад
Really useful Tutorial. Covered a lot of ground in more in-depth that other tutorials I've found. Had some issues on my end where what happened in the tutorial didn't happen on my end, but I admit that it's probably my fault not following the tutorial "Exactly".. at 12:14 when he subscribed to "PlayerInput_onActionTriggered", none of that auto-filled for me.. I also didn't get the key Rebinding to actually work, but my code had deviated quite a bit by that point, as I were experimenting with the difference between utilizing the pre-made 'Player Input' component, and instead doing things through the generated C# script.. so I had a lot of excessive code bloating my script as I were doing a lot of things using both methods. despite those mishaps aside, this was still the must informative tutorial I've watched explaining the new Input System so far.
@pnka999
@pnka999 11 месяцев назад
i am crying right now i learned the old input system and now this.. even this was 2 years ago its like learning unity again
@farshatowalex
@farshatowalex 2 месяца назад
FYI (40:20). Callback in programming is function you pass as a parameter. Not a parameter of a function. You basically called callback parameter to be "callback" while it is context object
@skylinr3444
@skylinr3444 2 года назад
Awesome, complex explanation. You rock!
@omersamiyagmur7688
@omersamiyagmur7688 2 года назад
Thanks a lot for clearly expression.I learned so much things.Pls keep going.
@TheEarlyAstrotype1024
@TheEarlyAstrotype1024 2 года назад
11:49 Why do I not have those four functions like onActionTriggered? 16:52 I don't have PlayerInputActions. Why so many missing codes this is frustrating. Edit: The PlayerInputActions is the .inputactions file name so thats why. Because I come here from Brackeys new input system tutorial and he named it InputMaster and that's my .inputactions file name.
@DavidPatMathis81
@DavidPatMathis81 Год назад
Sat here for literally 2 hours trying to figure out why it wouldn't log "jump!". Restarted unity and it worked perfectly. Just in case it helps anyone else.
@daroncreator3496
@daroncreator3496 5 месяцев назад
Perfect video for my bday! thanks
@CodeMonkeyUnity
@CodeMonkeyUnity 5 месяцев назад
Happy birthday!
@MrGamingPsycho
@MrGamingPsycho 2 года назад
Hey man, just stoped by to let you know i watched this on Udemy, great video helped me alot since i was switching from the old input system to this.
@deadalkabob
@deadalkabob 2 года назад
Hey mate do you by any chance know why I dont have the testing system input function ?
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I'm glad it helped you! Thanks!
@MaybeLoveHate
@MaybeLoveHate 2 года назад
This was so thorough, thank you!
@asdasdasdasd714
@asdasdasdasd714 2 года назад
7:30 Why we should use one of the two bottom options? I haven't tried it yet but SendMessage seems to be more convenient. Is there a downside?
@amosf.2780
@amosf.2780 Год назад
OMG This is Video is GOLD! Thanks for saving me from the doc!!
@sirzirkidevsalot
@sirzirkidevsalot 2 года назад
Absolute gold! Thank you for this!
@drainis
@drainis 2 года назад
Thanks for showing the C# events
@trueblue97
@trueblue97 2 года назад
Just finished, Nice video! I think I somewhat understand the new input system now lol
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I'm glad the video helped you!
@jay-ar1462
@jay-ar1462 2 года назад
I wish you can create a tutorial about the new UI toolkit 💕
@willowsticks
@willowsticks 2 года назад
Great video, thank you for taking the time to go a bit more in depth.
@nickdev
@nickdev 2 года назад
i´m not surprsed to see one more time that your video it´s the most complete on every tutorial about the InputSystem.... cause you´re the only one that mentione this 'if(context.performed)' way to check state of input
@webplace8268
@webplace8268 Год назад
I love you so much
@CodeMonkeyUnity
@CodeMonkeyUnity Год назад
I'm glad the video helped you!
@luckofthedice
@luckofthedice Год назад
Leaving this here for myself for future reference: 11:25
@RandomProduct
@RandomProduct 3 года назад
Just gonna go ahead and put this in the "Useful Unity Tips" playlist...
@raoufbensalem3417
@raoufbensalem3417 3 года назад
pls make it public
@RandomProduct
@RandomProduct 3 года назад
@@raoufbensalem3417 done
@raoufbensalem3417
@raoufbensalem3417 3 года назад
@@RandomProduct thx
@brashdigital423
@brashdigital423 3 года назад
haha yip, added to my massive unity playlist as well
@batuhandev4847
@batuhandev4847 3 года назад
can u link it please
@Danyu91
@Danyu91 2 года назад
If were going to use the C# events, how to we separate the function bindings? For example, you subbed the Jump function to the playerInput.onActionTriggered. But what about other functions when we want them to be triggered by their respective buttons?
@StellarMirage
@StellarMirage 2 года назад
Well explained!! Thanks for this tutorial. It helped me. :-)
@cwdgamedev822
@cwdgamedev822 2 года назад
Thank you very much for making this video. I'd probably be lost without it. The new input system does seem very powerful but parts are a still a little ambiguous to me. I had some trouble creating the equivalent of the old Input.GetButton(). For a while I was trying to make use of the phase.performed but couldn't figure it out. I eventually changed approaches and set the input type to value rather than button and basically check to see if the value is greater than zero to determine if the button is currently being pressed. Feels a little clunky so I imagine I'm still not doing it right but at least it's working now. Pretty frustrating considering how easy the previous method was. But I can certainly see the value of the new system when it comes to having local multiplayer and multiple types of input. Anyway, thanks again!
@xlakidiv
@xlakidiv 2 года назад
Thanks for the tutorial mate! ❤️
@laxyasharma7535
@laxyasharma7535 Год назад
You are amazing, wish you luck, you may reach that 1M so soon :)
@CodeMonkeyUnity
@CodeMonkeyUnity Год назад
Thanks for the kind words!
@nemesis8508
@nemesis8508 3 года назад
Can you PLEASE make a video on how to use a scrollview with the new input system? particularly with keyboard and controller? I simply want to have a scrollable menu that I can scroll down with the right stick/mouse wheel and be able to scroll down as I decend a menu and reach the edge, i want it to auto scroll to next item.
@donyjunior
@donyjunior 2 года назад
Very well explained. Thanks for the video.
@shikhermyv
@shikhermyv Год назад
Fantastic! Thanks CodeMonkey.
@gianttwinkie
@gianttwinkie 2 года назад
Great video! Answered almost all my questions. I just need to figure out how to get a display string for the UI to tell the player what the current keys and such are.
@Simo-un2zu
@Simo-un2zu 2 года назад
Did you figure it out Egon? I've wondered this too, like how would you make the UI text show a keyboard letter, or switch to a game controller letter if the player suddenly plugs it in and starts using it.
@monkeyshovey1284
@monkeyshovey1284 2 года назад
Hello Monkey! First off, this video really helped me, but I’m stuck on one part. On 17:30, you type in the PlayerInputActions, but there’s an error that says the following: [14:57:19] Assets\Codes\TestingInputSystem.cs(15,3): error CS0246: The type or namespace name “PlayerInputActions” could not be found (are you missing a using directive or an assembly reference?) Can you please help? Thank you!
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
Sounds like you didn't generate the C# script or didn't name it PlayerInputActions
@monkeyshovey1284
@monkeyshovey1284 2 года назад
@@CodeMonkeyUnity I’ll try redoing that part. I’ll respond back if it works. Thanks!
@monkeyshovey1284
@monkeyshovey1284 2 года назад
@@CodeMonkeyUnity how do you name the PlayerInputActions?
@xxxx9131
@xxxx9131 2 года назад
PlayerInputActions , use your ( input Action Asset) name
@Pythonify1234
@Pythonify1234 2 года назад
LIKED. SUBSCRIBED. UR A LEGEND BRO! Ur like an underrated version of Brackeys
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
Thanks for the kind words!
@princessoscar3089
@princessoscar3089 2 года назад
UM HELP I don't have any Input System folder in ASSETS like yours, mine is in PACKAGES! Do I move it or something?
@Pythonify1234
@Pythonify1234 2 года назад
THANKS! this tutorial was soooooooooooo helpful with my learning of unity....
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I'm glad it helped!
@Pythonify1234
@Pythonify1234 2 года назад
@@CodeMonkeyUnity I’m tryna make an rpg game and I was confused abt the new input system but this helped SOOOO MUCH THANX
@milda197905
@milda197905 2 года назад
Great tutorial. The only thing I;m missing a but are mouse movements/touch examples
@Kyrathos
@Kyrathos 3 года назад
Aw god damn it. I've been putting off learning the new input system ever since it came out. Aaaalright, alright ima learn it now...
@jamesmillerjo
@jamesmillerjo 3 года назад
Input re-binding was needed!
@nagyFerko
@nagyFerko 2 года назад
Hi! I started to work with the new input system, and tried to make a first person game, but when i try to look around using the mouse delta, the rotation is really snippy. but with conttroller it's fine.
Далее
They made a game about philosophy...
23:19
Просмотров 405 тыс.
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 704 тыс.
Classic Italian Pasta Dog
00:20
Просмотров 4,7 млн
Surxondaryoga biz chempionlarimiz bilan yetib keldik!
00:55
I Built a Transparent Boomerang (it's lethal)
13:10
Просмотров 3,6 млн
Steam EXPERT teaches you Game Marketing for SUCCESS!
52:22
The Clever Way to Count Tanks - Numberphile
16:45
Просмотров 941 тыс.
The biggest lie in video games
15:18
Просмотров 1,8 млн
I Tried To Beat Minecraft Backwards
18:53
Просмотров 1,2 млн
A new way to generate worlds (stitched WFC)
10:51
Просмотров 523 тыс.
Why I’m switching from Unity to Unreal Engine
9:02
Classic Italian Pasta Dog
00:20
Просмотров 4,7 млн