How to use Unity's New INPUT System EASILY

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 280

  • @Firehawk4000
    @Firehawk4000 Рік тому +60

    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 9 місяців тому +3

      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 8 місяців тому +1

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

  • @tdm.gamedev
    @tdm.gamedev 2 роки тому +70

    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!

  • @rohangaikwad1
    @rohangaikwad1 3 роки тому +157

    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  3 роки тому +28

      Good call!

    • @superjoeprime
      @superjoeprime 2 роки тому

      doesn't work for me

    • @oFurabio
      @oFurabio 2 роки тому +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 Рік тому

      OMG THANK YOU!!!!

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 3 роки тому +94

    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  3 роки тому +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.

  • @teckdomain5847
    @teckdomain5847 2 роки тому +11

    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.

  • @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!

    • @FictitiousCtrlGames
      @FictitiousCtrlGames Рік тому +2

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

    • @guineagames1048
      @guineagames1048 Рік тому

      @@FictitiousCtrlGames 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.

  • @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?"

  • @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.

  • @AmfistomosAtlas
    @AmfistomosAtlas 12 днів тому

    I have always postponed the task of switching to the new input system for my new and on-going projects, because I was well accustomed to the old ways. Never touch a running system, ey? Well, after watching this, I did change a running system and the transition went smoothly. And after the switch I have been asking myself, why didn't I do it sooner! Thanks mate!

  • @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....

  • @wmka
    @wmka 2 роки тому +2

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

  • @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 !!

  • @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!

  • @LaughingMan44
    @LaughingMan44 3 роки тому +28

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

    • @BMoDev
      @BMoDev  3 роки тому +12

      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 3 роки тому +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

  • @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!

  • @jamescarlson
    @jamescarlson Рік тому +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  Рік тому

      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!

  • @Gyozamang
    @Gyozamang Рік тому

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

  • @akidama
    @akidama 3 роки тому +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  3 роки тому +1

      I sensed something was wrong

  • @stuff3862
    @stuff3862 Рік тому +2

    Thanks unity for making something simple far more complicated.

  • @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!

  • @shackattack5018
    @shackattack5018 2 роки тому +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!

  • @belegrade
    @belegrade 7 місяців тому

    Still the best input system tutorial on youtube

  • @strategystuff5080
    @strategystuff5080 6 місяців тому

    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")

  • @raydelto
    @raydelto 5 місяців тому

    Smooth ending! Thanks for this awesome content.

  • @thismakesnosense
    @thismakesnosense Рік тому

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

  • @ShellSharpInc.
    @ShellSharpInc. 10 місяців тому

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

  • @tottijoao
    @tottijoao Рік тому

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

  • @JustHaltGaming
    @JustHaltGaming 8 місяців тому

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

  • @BoryslavMalishevskyi-j2x
    @BoryslavMalishevskyi-j2x 5 місяців тому

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

  • @venomtailOG
    @venomtailOG Рік тому +5

    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.

  • @MaximilianPs
    @MaximilianPs 6 місяців тому

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

  • @petermoss7387
    @petermoss7387 2 роки тому +1

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

  • @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

  • @SudopiaGames
    @SudopiaGames Рік тому +1

    Perfect, love your implementation. Thank you.

  • @monkeytheory4718
    @monkeytheory4718 2 роки тому

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

  • @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.

  • @TheSteveTheDragon
    @TheSteveTheDragon 3 роки тому +7

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

    • @BMoDev
      @BMoDev  3 роки тому +1

      no doubt

  • @renosnicolaou8417
    @renosnicolaou8417 Рік тому

    this is what I looked for to understand. Thanks bro

  • @giovani74
    @giovani74 4 місяці тому

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

  • @requiem9167
    @requiem9167 Рік тому

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

  • @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

  • @ars-1
    @ars-1 Рік тому

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

  • @jakeduncan2721
    @jakeduncan2721 3 роки тому +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!

  • @Norbingel
    @Norbingel 2 роки тому

    That last tip blew my mind!

  • @TegridyMadeGames
    @TegridyMadeGames 2 роки тому +1

    YOU ARE THE BEST!

  • @AmazinglyStrangeMedia
    @AmazinglyStrangeMedia Рік тому

    Simple and Brilliant, Loved this video!

  • @DARamosYT
    @DARamosYT 2 роки тому +11

    Just came here after being overloaded by info on CodeMonkey's tutorial (ua-cam.com/video/Yjee_e4fICc/v-deo.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.

  • @InverseMatt
    @InverseMatt 2 роки тому

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

  • @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

  • @MishimaFanatic
    @MishimaFanatic Рік тому

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

  • @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

  • @stelbertstylton
    @stelbertstylton Рік тому +1

    Thank you very much! This helps a lot!

  • @Radspidey
    @Radspidey 2 роки тому +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 😭

  • @eileeng2492
    @eileeng2492 3 роки тому +1

    Wow exceptional video BMO!
    Excellent

    • @BMoDev
      @BMoDev  3 роки тому

      appreciate it!

  • @vincenzusgaming
    @vincenzusgaming 2 роки тому

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

  • @bluezamx814
    @bluezamx814 4 місяці тому

    This video is amazing, thank you so much!

  • @GameOver71910
    @GameOver71910 Рік тому

    Thanks dude this was driving me up the wall

  • @MilesIveson
    @MilesIveson Місяць тому

    You are an absolute lifesaver! I have been looking everywhere for a simple tutorial on this, and all the others were so complicated, and this was easy. Thank you.

  • @saffronomicon
    @saffronomicon 2 роки тому

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

  • @TheRealKaiProton
    @TheRealKaiProton 3 роки тому +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  3 роки тому

      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 3 роки тому

      @@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,

  • @ericzwirnmann8151
    @ericzwirnmann8151 10 місяців тому

    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  10 місяців тому

      Definitely takes some getting used to!

  • @Stompin40
    @Stompin40 3 роки тому +2

    This was really really helpful. Thank you!

  • @boomerangaming
    @boomerangaming 2 роки тому

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

  • @Soturi_the_paladin
    @Soturi_the_paladin 2 роки тому

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

  • @Din_e_Islaam
    @Din_e_Islaam 2 роки тому

    Woah, great video mate!

  • @univexnate8013
    @univexnate8013 7 місяців тому

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

  • @arcado5783
    @arcado5783 Місяць тому +1

    Dude can you just idk zoom like 1000000 times every time when you show something, it's soooooo easy to follow your tutorial

  • @tPlayerioT
    @tPlayerioT Рік тому

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

  • @GeenSama
    @GeenSama 8 місяців тому

    I like the first part most :) thanks

  • @nsr43d
    @nsr43d Рік тому

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

  • @jeffersongouveia4581
    @jeffersongouveia4581 2 роки тому +10

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

    • @BMoDev
      @BMoDev  2 роки тому +1

      Thanks, appreciate it!

  • @JM-go6zx
    @JM-go6zx Рік тому

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

  • @michellecristianedeazevedo2852
    @michellecristianedeazevedo2852 2 роки тому

    Thank you for sharing this tutorial

  • @ndkhanhs_m01
    @ndkhanhs_m01 2 роки тому

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

  • @tilenbicanic6172
    @tilenbicanic6172 Рік тому

    This video was really helpful. Thx!

  • @MattRaffel
    @MattRaffel Рік тому

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

  • @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

  • @ethanogle698
    @ethanogle698 2 роки тому

    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

  • @사이버망령-t4b
    @사이버망령-t4b 2 роки тому

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

  • @平震宇
    @平震宇 2 роки тому

    Great video, the menu works great

  • @Radek_M.
    @Radek_M. 2 роки тому +1

    Very helpful video :)

  • @2401M3NDIC4N7BI45
    @2401M3NDIC4N7BI45 Рік тому

    slick call to subscribe, you earned it

  • @lovareths569
    @lovareths569 Рік тому

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

  • @hasanduman8559
    @hasanduman8559 2 роки тому

    Tysm, did everything as described

  • @catmeddie7118
    @catmeddie7118 11 днів тому

    You absolutly safed me

  • @lemuelmetrillo271
    @lemuelmetrillo271 2 роки тому

    ITS REALLY WORKED LOL THANK YOU DUDE

  • @timvandeneng4724
    @timvandeneng4724 8 місяців тому

    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

  • @mandamoon9149
    @mandamoon9149 3 роки тому +4

    This vid is swag daddy, sheeshhh

  • @smitj5404
    @smitj5404 2 роки тому

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

  • @gwailoRS
    @gwailoRS Рік тому

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

  • @brandonreames4121
    @brandonreames4121 Рік тому

    Nice Video. What is the reason to add the OnDisable() section for the controls? Most of the videos I've seen just say you only need the OnEnable part and not also the disable. Curious if there's a particular case I haven't run into yet there.

  • @gazuloo6395
    @gazuloo6395 2 роки тому

    This is really useful and easy to understand!

  • @attenurmi936
    @attenurmi936 2 роки тому

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

  • @PaziaTV
    @PaziaTV 2 роки тому

    Great video, thanks!

  • @dynamicvoltage9765
    @dynamicvoltage9765 Місяць тому +1

    I absolutely despise the new input system. Unity is just trying to get us farther away from actually coding, but coding your own controls is actually a LOT simpler than this spaghetti nonsense you have to go through.

  • @TexturedPolak
    @TexturedPolak 2 роки тому

    Very nice tutorial and easy :)

  • @luckypretzel
    @luckypretzel Рік тому

    Quite a good tutorial. Thank you.

  • @metapod
    @metapod 2 роки тому +1

    If I want to make a lot of controls that are like "If X button is held while Y is pressed" and "If Z is pressed but Q is not held" is it better to use the old input system since it lends itself to if statements more naturally? Or should I still aim to use the new system?

    • @dumonyu5027
      @dumonyu5027 2 роки тому

      I'm a noob still but I think the new system would be better for that case. There are "button press with single modifier" and "button press with two modifiers" options built into bindings. Someone more experienced may be able to chime in and clarify tho.