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

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

КОМЕНТАРІ • 693

  • @CodeMonkeyUnity
    @CodeMonkeyUnity  3 роки тому +37

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

      @@gabrielaguiar5984 You can download the official Starter Assets and see how it works ua-cam.com/video/jXz5b_9z0Bc/v-deo.html

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

      This is pretty good. Thanks for sharing.

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

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

    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

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

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

  • @anuj-1659
    @anuj-1659 3 роки тому +22

    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

  • @facelessanon
    @facelessanon 3 місяці тому +5

    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.

  • @leestevens3226
    @leestevens3226 Рік тому +4

    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.

  • @okito7667
    @okito7667 2 роки тому +74

    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

  • @pablose6986
    @pablose6986 Рік тому +3

    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.

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

    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

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

    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

  • @brendonleenheer
    @brendonleenheer 3 роки тому +11

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

  • @freakymundo
    @freakymundo Рік тому +46

    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.

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

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

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

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

      I'm glad the video is still helpful! Thanks!

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

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

  • @giovannazanella
    @giovannazanella 2 роки тому +20

    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!

  • @bugge1947
    @bugge1947 3 роки тому +9

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

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

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

  • @JacobS-rh7tb
    @JacobS-rh7tb 3 роки тому +30

    A bit steep learning curve but once you get the hang this new system is outstanding! Thanks for the video, great as always!

  • @cradle_of_chaos
    @cradle_of_chaos 3 роки тому +17

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

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

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

      @@cradle_of_chaos Brackeys has a video on RTS cameras that shows how to do it really simply too

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

    The most detailed tutorial I've seen about the new input system. Very good job :)

  • @whyme5431
    @whyme5431 3 роки тому +41

    Please do more dots tutorials.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 роки тому +6

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

      @@CodeMonkeyUnity are your dots tuts from ~2 years ago still good practice?
      Or did unity change too much meanwhile?

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

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

    Best Unity Input tutorial out there, such a confusing topic , thanks

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

    I finally understood this new system thanks to your video. Thank you very much!❤

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

    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.

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

    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

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

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

    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

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

    I don't even skip your ads and I watch them completley to support you

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

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

    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.

  • @Kyle-yn5hy
    @Kyle-yn5hy 5 місяців тому +2

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

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

      They explain it in their wiki so this is intended. They say they wanted the system to have multiple workflows unlike the old one.

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

    This video is literally exactly what I needed.

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

    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.

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

    Thanks CodeMonkey Sir for providing your wisdom. I'm trying this for 2 days and now I got the trick to do this.. 😇🙏🏻

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

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

    Finally someone explain the input phases, thank u!

  • @circynsoftware
    @circynsoftware 19 днів тому

    Thanks again for your really informative videos Hugo, this one helped last night when I was drawing a blank on converting from old input system to the new one

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  18 днів тому

      Nice, I'm glad the video helped you! Best of luck with your project!

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

    I have liked the video
    And I am going for sleep
    Will watch it tomorrow
    😂😂😂😉huge fan sir

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

    amazing video!! covered all the essential topics with just the right amount of time and content for each topic!!

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

    He replies to people even after 2 years.. What a legend

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

    Needed this so bad, thanks man!

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

    Amazing content, I'm buying right now the course.

  • @Dahxelb
    @Dahxelb 9 місяців тому

    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.

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

    Couldn’t be better timing! I searched for tutorials earlier this morning! Thank you!

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

    Wow! Thank you so much. Thanks to this video, I understand how to use Unity New Input System. Thanks

  • @ChibachiTV
    @ChibachiTV 3 роки тому +3

    I haven't even began to watch this yet and I know I already love you for it.

  • @amosf.2780
    @amosf.2780 Рік тому +1

    OMG This is Video is GOLD!
    Thanks for saving me from the doc!!

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

    Thanks for showing the C# events

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

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

    Thank you so much for the great tutorial! I have a newfound respect for the Input system.

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

    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.

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

  • @havendewart
    @havendewart 3 роки тому +13

    Your tutorials are the perfect pace and you’re super good at explaining everything. Thanks for doing what you do!

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

    Another awesome tutorial just like the courses you offer! Thanks matey!

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

    man, thank you a lot for your tutorials!

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

    Thanks a lot for clearly expression.I learned so much things.Pls keep going.

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

    Thanks, learned how to use it

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

    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.

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

    Wow, thank you for this compact & very informative overview!

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

    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!

  • @ResoluteLemon
    @ResoluteLemon 3 роки тому +9

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

      I was wondering the same.

    • @nuevageneracionba
      @nuevageneracionba 2 роки тому +7

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

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

    This will help me as hell! When will the third person shooter Tutorial, come out? 🤩😍

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 роки тому +5

      I'm almost done with that one, hopefully it will be out next week.

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

      @@CodeMonkeyUnity Thank you really much 😍👊

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

      I'm glad it helped you! Thanks!

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

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

    Absolute gold! Thank you for this!

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

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

    Fantastic! Thanks CodeMonkey.

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

    Well explained!! Thanks for this tutorial. It helped me. :-)

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

    I love you so much

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

    Perfect video for my bday! thanks

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

    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

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

    Great video, thank you for taking the time to go a bit more in depth.

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

    Thanks for the tutorial mate!
    ❤️

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

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

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

    You are amazing, wish you luck, you may reach that 1M so soon :)

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

    Very well explained. Thanks for the video.

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

    Just finished, Nice video! I think I somewhat understand the new input system now lol

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

    THANKS! this tutorial was soooooooooooo helpful with my learning of unity....

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

      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

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

    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.

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

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

    Input re-binding was needed!

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

    LIKED. SUBSCRIBED. UR A LEGEND BRO!
    Ur like an underrated version of Brackeys

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

    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?

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

    this was an amazing video, thank you.

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

    Thank you for this. I haven't finished watching it, yet, but I know I'm about to learn a lot. Thank you

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

    something to note, with multiple control schemes if you dont add the things to use for that scheme nothing will work, it will not send any event calls of any type.

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

    Thanks for the nice video, I guess the new input system cannot do the 'OnMouseDown', for example if I want a drawing App draw following my cursor when I pressed and hold, it's kind of more convienet to use the Old way to do it? either I have to read value and do update in the FixedUpdate or I just use OnMouseDown.

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

    Great video tutorial! Do you have another video on how to add the look around portion. Ideally just like this one for mouse/gamepad/touch. Thanks!

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

      Hmm I didn't cover that specifically but you can look at the Unity Starter Assets which do that and use this Input System unitycodemonkey.com/video.php?v=jXz5b_9z0Bc

  • @MrKiraBR
    @MrKiraBR 7 днів тому

    How can I call a custom method using the on screen button component?

  • @juice1884
    @juice1884 3 роки тому +15

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

      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
      ua-cam.com/video/5tOOstXaIKE/v-deo.html
      ua-cam.com/video/xF2zUOfPyg8/v-deo.html

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

    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?

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

    Very robust system! Great tutorial!

  • @jay-ar1462
    @jay-ar1462 2 роки тому +1

    I wish you can create a tutorial about the new UI toolkit 💕

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

    Great tutorial. The only thing I;m missing a but are mouse movements/touch examples

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

    I got rebinding keys working but rebinding the movement through sticks just is not. The rebind call never completes. Any good places to look for help?

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

    Just amazing, Thank you!!!

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

    I got confused at one point so just so no one else does, he drags the object containing the script not the script itself onto the Jump callback function