How to use Unity's New INPUT System EASILY

Поделиться
HTML-код
  • Опубликовано: 21 сен 2024
  • The "new" Input System in Unity still doesn't come pre-packaged and is complicated to understand at a glance. It's no surprise new game developers don't know where to look in the engine to find it, or how to use it.
    In this tutorial, learn how a beginner can adapt their current project to use the new input system in a simple way, as well as using the more complicated C# Event driven way.
    The future is now! Give it a try, let me know if you have any issues.
    Also, subscribe or I'll be sad 😔
    ✨Want to support the channel?
    Buy me a coffee ☕: ko-fi.com/bmoli
    ➤LIKE the video if you enjoyed, it really helps the channel!
    ➤Join our DISCORD SERVER: / discord
    We have channels to help you with your problems!
    #unity #gamedev #inputsystem

Комментарии • 267

  • @Firehawk4000
    @Firehawk4000 Год назад +51

    I spent the last 3 days watching different hour-long tutorials that went incredibly in-depth and had me writing 30-ish lines of code, and here you were the whole time with "Unity already does this for you."
    Thank you.

    • @Kooczsi
      @Kooczsi 7 месяцев назад +2

      i hate those tutorials that go way too in-depth for a simple problem with a simple solution. Spending an hour writing code that already exists doesnt make you smart.

    • @Aguyfrom225
      @Aguyfrom225 6 месяцев назад +1

      Im here because none of those other tutorials worked for me.

  • @tdm.gamedev
    @tdm.gamedev 2 года назад +66

    As far as I can tell, this is the best input system tutorial on the internet. I can't tell you how many videos I've watched, and how many guides I've read, and I didn't know about the "Create Actions" button OR the Generate C# class checkbox. Thank you so much for this video.

    • @BMoDev
      @BMoDev  2 года назад +8

      Appreciate that, hope it helps!

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 2 года назад +90

    Lmao I never knew people could actually make short bite-sized tutorials and still have so much value. Jeez man, you raised my standards. Keep it up!

    • @BMoDev
      @BMoDev  2 года назад +7

      Appreciate that 🙏

    • @Andrew90046zero
      @Andrew90046zero 2 года назад +2

      @@BMoDev Do you end up cutting out a lot of "digressions"? Like if you want to get your video under a certain time, do you usually end up cutting out a lot of what you said in the recordings? So you can be concise and to-the-point with your videos.
      If so, how much is cut out? Like if it wasn't cut out, would the video be 20 minutes long instead?
      I ask because I also think you did a good job at packing a lot of info into 10 minutes. And I wish I could do the same :P

    • @BMoDev
      @BMoDev  2 года назад +7

      @@Andrew90046zero I keep probably 95% of what I record, I just trim whenever theres a long gap between 1 sentence to the next..
      Every video I try to get better at doing it in 1 take so I can edit faster haha

    • @Andrew90046zero
      @Andrew90046zero 2 года назад +2

      @@BMoDev Totally agree with that last bit. I want to be able to make simple and straightforward tutorials about topics that I don't see being talked about too much already on youtube, or add a new perspective to a common topic.
      But I don't want to overwhelm viewers with extra unnecesary info.

  • @Neurobots
    @Neurobots 2 года назад +13

    Migrating from the old system was a many days gaddamn nightmare! So. Just pay clear attention, follow the instructions and even rewind, you can then experiment with other settings gradually. Don't confuse yourself with other tutorials, despite the quicker diction, this is the best of the best starting point for newbies with this new beast. Many thanks to the author!

    • @Assortment54321
      @Assortment54321 Год назад +2

      Can you tell me what some of the problems are with using the default input system?

    • @guineagames1048
      @guineagames1048 Год назад

      @@Assortment54321 Sorry for the late reply, for singleplayer I don't see any issues, but for multiplayer I can confirm setting up more than 2 players is a PAIN in the old one.

  • @rohangaikwad1
    @rohangaikwad1 2 года назад +153

    1:48 Correction: you can use either one or both input systems (old and new) together if you want to. To choose from which input system to use, go to Edit -> Project Settings -> Player -> Other settings -> Configuration -> Active Input Handling. From the drop-down, either select new or old or both.

    • @BMoDev
      @BMoDev  2 года назад +27

      Good call!

    • @superjoeprime
      @superjoeprime Год назад

      doesn't work for me

    • @oFurabio
      @oFurabio Год назад +23

      I KNOW THIS IS OLD, BUT I'M DOING A COLLEGE PROJECT THAT'S DUE IN 2 DAYS, I SWITCHED TO THE NEW INPUT SYSTEM AND HAD 0 IDEA OF HOW TO USE IT AND THOUGHT THAT I WAS GOING TO GO NO SLEEP FOR 2 DAYS TRYING TO LEARN IT BECAUSE I THOUGHT THAT WAS NO WAY OF RETURNING TO THE OLD ONE. I LOVE YOU, CAN I GIVE U A HUG?!

    • @TrickyMickTrucking
      @TrickyMickTrucking Год назад +4

      YOU ARE A LEGEND FOR THIS!!!!

    • @igorpolotai
      @igorpolotai 11 месяцев назад

      OMG THANK YOU!!!!

  • @teckdomain5847
    @teckdomain5847 2 года назад +8

    Using Unities Input System Method #1: 1:13 --- 6:09
    Using Unities Input System Method #2: 6:09 --- 9:31
    This is for the people that already watch the video
    but need to go back to one of the methods. If you
    need more context, then just watch the full video.

  • @jmw03j
    @jmw03j 2 года назад +7

    Just wanted to agree that this is the most concise and impactful video I've seen on this. Watched 6 or 7 others and even if they were 30m+ long they didn't provide as much true value as this one. Really solid work.

  • @ecchigamesstudios
    @ecchigamesstudios Год назад +6

    Finally someone who doesn't take 45min out my day to learn this, nice and simple. Thank yoU!

  • @LemonHeadYouTube
    @LemonHeadYouTube 2 года назад +4

    I watched and read at least 3 or 4 different tutorials on the new Input System, even Brackeys video. Yours explained it the best, as well as giving many other different ways of going about it. You kept it simple and to the point, Subbed!

  • @wmka
    @wmka 2 года назад +2

    Searched for "unity input system".
    This is first on the list.
    Thank you and have a good one.

  • @xXYannuschXx
    @xXYannuschXx Год назад +2

    You explained this way way way better and simpler than Unity's own tutorial and documentation. Unity says that there is now way to 1:1 implement reading axis like with the old input system, having you require to use callback when triggering the input action event.
    But you clearly show that there is a 1:1 solution....

  • @amyblack3164
    @amyblack3164 2 года назад +4

    I was having such a hard time with this because of different videos using different techniques and assuming I knew some things I didn't! This video was great, thank you so much!

  • @DataDrifterOFC
    @DataDrifterOFC 2 года назад +19

    This is short but in many ways more informative than many tutorials on the subject that go through all types of ways to use them, then explain why not to use them, only to then graze the preferred method.
    Thank you, this was extremely helpful!

  • @akidama
    @akidama 2 года назад +1

    I literally started exploring the new system last night and was hoping you'd post something. I feel like I manifested this video with my powerful psychic energy.

    • @BMoDev
      @BMoDev  2 года назад +1

      I sensed something was wrong

  • @LaughingMan44
    @LaughingMan44 2 года назад +24

    That's way more complicated for someone starting out than the old way. A lot of arbitrary boiler plate code

    • @BMoDev
      @BMoDev  2 года назад +11

      Yeah you're absolutely right, its got a good chunk of overhead pains... but once its setup it can keep your code pretty clean. I still use the old system for most of my projects, but if I was making a commercial game I'd use the new system , personally.

    • @Andredy89
      @Andredy89 2 года назад +6

      Exactly. I'm creating my first _big_ game and after one sleepless night I decided to stick with the old input system.

    • @tramarthomas6105
      @tramarthomas6105 Год назад

      ​@@Andredy89 how your project has been going well

  • @Mackinstyle
    @Mackinstyle Год назад +2

    In my opinion, one of the best things about this tutorial is that you take the time to talk about the little roadblocks like "why can't I see this plugin listed?" or "Why is autocomplete not working for Input in my code editor?"

  • @shackattack5018
    @shackattack5018 Год назад +3

    Just have to say this has to be one of the best and simplest explanations of the new system, you did the community a great service. I'm now subscribed!

  • @leonard4
    @leonard4 Год назад +4

    Would love to see a tutorial from you on a rebinding system for the new input system, this video was a life saver!

  • @dlgcreations2162
    @dlgcreations2162 2 года назад

    After watching what I thought was how to use the new system and getting rather upset that everything stopped working, I came across your video and in less than 10 minutes you clarified (simply) the error of my ways. Thanks !!

  • @jamescarlson
    @jamescarlson 11 месяцев назад +1

    Hey Brendan! We went to school together; fancy running into you here! I didn't even know Unity had this new input system until I needed it today, so thank you for the great tutorial! Hope you are well!

    • @BMoDev
      @BMoDev  11 месяцев назад

      Hey haha, awesome seeing a comment from you! Yeah the input system is kinda wonky honestly and has a learning curve, but gets pretty handy once you figure it out. Same back to you, hope all is well!

  • @giovani74
    @giovani74 2 месяца назад

    Your video is so helpful and easy to understand. I like how direct you are. Cheers

  • @Gyozamang
    @Gyozamang Год назад

    this is the most convoluted way for the new input system Ive seen from multiple tutorials

  • @strategystuff5080
    @strategystuff5080 4 месяца назад

    Thanks man, I used the new input system before, but forgot most of it. It is so hidden (like many useful things in unity)
    It is really nice to use, well worth it (also Unities own documentation is awful for most things, they could have explained everything in a few paragraphs but instead they are like "download our example lol")

  • @tottijoao
    @tottijoao Год назад

    Thank you! I watched like over 9000 videos and just couldn't figure it out but you made it simple and effective!

  • @raydelto
    @raydelto 3 месяца назад

    Smooth ending! Thanks for this awesome content.

  • @belegrade
    @belegrade 5 месяцев назад

    Still the best input system tutorial on youtube

  • @Un4GivNX
    @Un4GivNX Год назад

    I just wasted 3 days trying to use the new input system. I think it is going the right way but i stumbled on so many problems that i gave up and fallback on the good old reliable Rewired system. For 45$, it took me a day and everything is up and running.

  • @MaximilianPs
    @MaximilianPs 4 месяца назад

    I'm in late but that's a great tutorial and I hope you don't stop doing it 😁

  • @ericzwirnmann8151
    @ericzwirnmann8151 8 месяцев назад

    Thanks, the Input System is much easier to understand now. Just need to work on the gritty details on how to setup and use the Input Actions (dialog)

    • @BMoDev
      @BMoDev  8 месяцев назад

      Definitely takes some getting used to!

  • @studiovulcan4411
    @studiovulcan4411 2 года назад +1

    I wish the parts where you "updated" the code were redone so I could understand what was going on. As someone starting fresh, i didn't have this code to "update" ssooooo, it made it harder to follow along than it needed to be. :P

  • @ars-1
    @ars-1 Год назад

    I like the last part where we keep clicking and subscribe your channel

  • @JustHaltGaming
    @JustHaltGaming 6 месяцев назад

    THANKYOUTHANKYOUTHANKYOOOUUU Only person in this jungle of convoluted tutorials that explained it :')

  • @stuff3862
    @stuff3862 Год назад +1

    Thanks unity for making something simple far more complicated.

  • @venomtailOG
    @venomtailOG Год назад +4

    I don't want a simpler way of doing this. I want to use the action maps. Why isn't there a normal tutorial that does this. Everyone always the easiest path of least resistance tutorials without teaching us how to actually use the tools given.

  • @ShellSharpInc.
    @ShellSharpInc. 8 месяцев назад

    Thank you for this, every other video I found made everything seem overly complicated just to detect input.

  • @thismakesnosense
    @thismakesnosense Год назад

    I spent hours trying to figure this stuff out and your tutorial just does it with a couple of lines

  • @TheSteveTheDragon
    @TheSteveTheDragon 2 года назад +7

    Admittedly it uses the advanced programming concepts of delegates and events but nothing a little practice can't fix.

    • @BMoDev
      @BMoDev  2 года назад +1

      no doubt

  • @Radspidey
    @Radspidey Год назад +1

    IS IT GONNA BE CREEPY
    IF I SAY I LOVE YOU SO MUCH 😭
    BECAUSE I WATCHED OTHER PEOPLE AND THEY WERE CONFUSING
    IS ONLY YOUR WAY THAT WORKED FOR ME
    THANKS SO MUCH, I REALLY MEAN IT 😭

  • @mandamoon9149
    @mandamoon9149 2 года назад +4

    This vid is swag daddy, sheeshhh

  • @cihadturhan
    @cihadturhan Год назад +1

    Thanks for sharing. Although you explained it short and understandable manner, new input system is way more complicated and I’m afraid to make transition to new system.
    Just a simple tip: instead of enabling/disabling, you can make gameobjects to child to other gameobjects so it will be disabled automatically

  • @GameOver71910
    @GameOver71910 Год назад

    Thanks dude this was driving me up the wall

  • @petermoss7387
    @petermoss7387 2 года назад +1

    Woah clicking the subscribed button worked! I’ll be using the generate script version from now on ty

  • @MishimaFanatic
    @MishimaFanatic Год назад

    Thank you, one of the best videos on how to implement the NIS, help me a lot with a homework

  • @monkeytheory4718
    @monkeytheory4718 Год назад

    ok, I have watched multiple input action videos and this is the one I was able to understand

  • @BoryslavMalishevskyi-j2x
    @BoryslavMalishevskyi-j2x 3 месяца назад

    Great video:) simple, short and easy to understand, well done!

  • @vincenzusgaming
    @vincenzusgaming 2 года назад

    This is WAYYY better than the one Unity has in their channel! Its very simple and easy to learn!

  • @SudopiaGames
    @SudopiaGames Год назад +1

    Perfect, love your implementation. Thank you.

  • @bluezamx814
    @bluezamx814 2 месяца назад

    This video is amazing, thank you so much!

  • @GrowthFuelTV
    @GrowthFuelTV 2 года назад

    Maybe the best tutorial above the imput system, easy to understand, thanks matte, and i have subs the channel because that end line on the video :D

  • @univexnate8013
    @univexnate8013 5 месяцев назад

    Thanks for that video, tried to fixed a damn menu with it, and it works now XD

  • @DARamosYT
    @DARamosYT 2 года назад +11

    Just came here after being overloaded by info on CodeMonkey's tutorial (ruclips.net/video/Yjee_e4fICc/видео.html)
    You really condensed the tutorial to what I wanted to know: how to access the inputs themselves for a project.
    CodeMonkey did a nice job going in depth, but at 40 minutes of video and awkwardly complicated segments; I was lost by the end of it and didn't know how to get his workflow to work for my project.
    Here you were straight to the point, and I applaud you for it.

  • @jakeduncan2721
    @jakeduncan2721 2 года назад +2

    Hi, do you have a moment to talk about our lord and savior BMo?
    -
    -
    -
    All hail BMo
    -
    -
    -
    Great to see another tutorial for the people, well done!

  • @saffronomicon
    @saffronomicon 2 года назад

    Just what I needed to continue, good examples and short thx!

  • @nnNothing
    @nnNothing 2 года назад +7

    Idk why, but i think old InputSystem more easier and more effective on writing code

    • @geniusrealms
      @geniusrealms 2 года назад +1

      Exactly. 100% more simpler than the others

  • @eileeng2492
    @eileeng2492 2 года назад +1

    Wow exceptional video BMO!
    Excellent

    • @BMoDev
      @BMoDev  2 года назад

      appreciate it!

  • @jeffersongouveia4581
    @jeffersongouveia4581 2 года назад +10

    Very good tutorial man! Simple and straight to the point! Thank you! Subscribed! 🙂

    • @BMoDev
      @BMoDev  2 года назад +1

      Thanks, appreciate it!

  • @GeenSama
    @GeenSama 6 месяцев назад

    I like the first part most :) thanks

  • @XpresConsole
    @XpresConsole 2 года назад

    I had to try this new thing called clicking on subscribe button, and it worked

  • @boomerangaming
    @boomerangaming 2 года назад

    Thank you so much for letting me know to generate csproj file for new input system.

  • @Stompin40
    @Stompin40 2 года назад +2

    This was really really helpful. Thank you!

  • @nsr43d
    @nsr43d Год назад

    You are highly technical. Very nicely explain. Great! tutorial i found🙂 Thank you!!

  • @renosnicolaou8417
    @renosnicolaou8417 Год назад

    this is what I looked for to understand. Thanks bro

  • @사이버망령-t4b
    @사이버망령-t4b 2 года назад

    It's best inputSystem tutorial for beginner.. so helpful Thanks a lot!!

  • @stelbertstylton
    @stelbertstylton Год назад +1

    Thank you very much! This helps a lot!

  • @requiem9167
    @requiem9167 Год назад

    This is great. Straight forward and what I wanted to see

  • @TegridyMadeGames
    @TegridyMadeGames 2 года назад +1

    YOU ARE THE BEST!

  • @lemuelmetrillo271
    @lemuelmetrillo271 Год назад

    ITS REALLY WORKED LOL THANK YOU DUDE

  • @Norbingel
    @Norbingel 2 года назад

    That last tip blew my mind!

  • @JM-go6zx
    @JM-go6zx Год назад

    Thank you for your video. It has been very helpful for me to understand this system ✌

  • @TheRealKaiProton
    @TheRealKaiProton 2 года назад +9

    That was great, up until now, all Ive ever seen on the Inputsystem is massive tutors on setting it up, and then when the button press's happen going back to the editor and using the events system, this seems like a much better way to do it, at least for me, I prefer to keep all the coding stuff, in code, not split between the editor and the code.

    • @BMoDev
      @BMoDev  2 года назад

      Thanks! I think it can be tricky to wrap your head around, but its nice when you get it setup. It can also be used in a variety of ways, but I also prefer to stick to code

    • @TheRealKaiProton
      @TheRealKaiProton 2 года назад

      @@BMoDev That style of Input system has been in Godot since the start I think, and it has lured me away to check it out, because unity seemed too complex, and GMS2 was pretty basic,

  • @AmazinglyStrangeMedia
    @AmazinglyStrangeMedia Год назад

    Simple and Brilliant, Loved this video!

  • @alltheonelookbackward
    @alltheonelookbackward 9 месяцев назад

    Add Up\Down\Left\Right Composite is what now you are currently doing with a Vector2D

  • @Soturi_the_paladin
    @Soturi_the_paladin 2 года назад

    i subbed because of the clicking joke at the end. that was pretty funny

  • @lovareths569
    @lovareths569 Год назад

    i'm a bit late but that ending is epic XD

  • @ndkhanhs_m01
    @ndkhanhs_m01 2 года назад

    i love u so much !! you helped me end 15 hours stress because of this

  • @MattRaffel
    @MattRaffel Год назад

    Also, wanted to say thank you for a to the point, quick tutorial.

  • @timvandeneng4724
    @timvandeneng4724 6 месяцев назад

    understanding the new unity input system gave me a f*cking stroke, but your video was pretty clear. It just sucks that the new system uses so many lines of code compared to the old one lol

  • @PaziaTV
    @PaziaTV Год назад

    Great video, thanks!

  • @piotrkostecki7373
    @piotrkostecki7373 11 месяцев назад

    You are a GIGACHAD!

  • @ethanogle698
    @ethanogle698 Год назад

    From the ashes of Brackeys a Pheonix rises.
    Edit: insta-subscribed

  • @atexomg
    @atexomg 2 года назад

    Thanks bro you are the only one that I found helpful

  • @Radek_M.
    @Radek_M. 2 года назад +1

    Very helpful video :)

  • @gwailoRS
    @gwailoRS Год назад

    Perfect instruction video for the new input system. The CTA was also on point you got a sub out of me thanks!

  • @tilenbicanic6172
    @tilenbicanic6172 Год назад

    This video was really helpful. Thx!

  • @attenurmi936
    @attenurmi936 2 года назад

    Damn... almost forgot to click that subscribe button there...

  • @matheuspena475
    @matheuspena475 2 года назад

    Great video dude! Simple and easy to follow thanks!

  • @elsyndur4415
    @elsyndur4415 2 года назад +2

    Do you know why it's telling me, "The type or namespace name 'PlayerInputActions' could not be found," even though I generated the C# class? Generating the class solved this issue for me once before, but, now, it won't, for some reason.

    • @aw1lt
      @aw1lt 2 года назад

      make sure you pressed apply.

  • @mmking9999
    @mmking9999 2 года назад +2

    THANK YOU. I added Input System 1.3 and was trying to figure out why the UnityEngine.InputSystem directive wasn't appearing anymore. Unity can be such a pain to work with sometimes.

    • @BMoDev
      @BMoDev  2 года назад

      Haha 💯, glad you got it working

    • @HanyaAbdi
      @HanyaAbdi 2 года назад

      @@BMoDev big thanks for your tutorials!
      its very helpful

  • @2401M3NDIC4N7BI45
    @2401M3NDIC4N7BI45 Год назад

    slick call to subscribe, you earned it

  • @Din_e_Islaam
    @Din_e_Islaam Год назад

    Woah, great video mate!

  • @smitj5404
    @smitj5404 2 года назад

    much love to your work sir!!! ❤❤❤

  • @gazuloo6395
    @gazuloo6395 2 года назад

    This is really useful and easy to understand!

  • @dragonscalesvr
    @dragonscalesvr 2 года назад +1

    Is there a way to just work with the interface they provide or you actually have to go in and code it to use it?

  • @hasanduman8559
    @hasanduman8559 Год назад

    Tysm, did everything as described

  • @tPlayerioT
    @tPlayerioT Год назад

    what theme are you using? it looks so good to my eyes

  • @平震宇
    @平震宇 Год назад

    Great video, the menu works great

  • @Megabyte1
    @Megabyte1 9 месяцев назад

    Thank you!

  • @michellecristianedeazevedo2852

    Thank you for sharing this tutorial

  • @T3QN1Q
    @T3QN1Q 2 года назад +3

    Sheeeesh teach me more pog daddy

    • @BMoDev
      @BMoDev  2 года назад

      future tutorials will be zooted

  • @josefroylan6570
    @josefroylan6570 2 месяца назад

    THIS IS THE BEST !!!