Unity's NEW input system in 13 minutes

Sdílet
Vložit
  • čas přidán 16. 07. 2024
  • In previous videos, we've already talked about how we ditched Rewired in favor of Unity's new input system. In today's video, Thomas goes over the basics of the new input system, and how you can get started with it on your own.
    Timestamps:
    00:00 What's an input system?
    00:28 Why not the old?
    01:29 Setting up movement
    09:47 Setting up actions
    12:12 Conclusion
    ---
    Get our game now on Steam: store.steampowered.com/app/21...
    Join our Discord: / discord
    Get 1-to-1 coaching for your game or studio: www.fiverr.com/s/jGmQgL
    In need of some Unity Assets? Use our affiliate link to support us, it's free, and we get a small kickback: prf.hn/l/wzGa15G
    Want to reach out to us? send us an email at hello@bitemegames.com
  • Jak na to + styl

Komentáře • 29

  • @VinceColletti
    @VinceColletti Před 6 měsíci +1

    This video really helped me to understand how to use the new input system. Thank you!

  • @DavidEarle
    @DavidEarle Před 7 měsíci +4

    I went through four different tutorials on this new system, including the one in Unity's documentation, and this is the only one that got my character moving. Thank you!

  • @MalikenGD
    @MalikenGD Před 10 měsíci +1

    Thanks for this

  • @moshecristel
    @moshecristel Před 8 měsíci +1

    The best video I've seen about the New Input System. Thank you! Also, what software did you use to edit your video and do the picture-in-picture and zooming?

    • @bitemegames
      @bitemegames  Před 8 měsíci +1

      It's just my regular editing software, Premiere Pro with a bunch of effects and layers. Nothing too crazy, there are plenty of tutorials regarding it which you can find online. -M

    • @moshecristel
      @moshecristel Před 8 měsíci

      @@bitemegames Thanks for the reply! Always good to know what folks are using :). Appreciated!

  • @fokeyjo
    @fokeyjo Před 11 měsíci

    Great that you added a little explanation about what control schemes and action maps are. And an interesting way to create the event for it that's different to other tutorials.
    I've been trying to set up a game that has both keyboard and mouse enabled at the same time for movement (it's a simple game, doesn't need a controls selector). I've only been able to make it work in code by only triggering a pointer move when you click. But I wasn't sure if input actions are actually able to do that? I tried a composite with a modifier, didn't seem to do it. I also don't get how it works when you get a canvas involved. It doesn't do everything, mouse needs a raycast if you have a canvas UI and in-game controls.

    • @bitemegames
      @bitemegames  Před 11 měsíci

      As far as I know, you can definitely do mouse and keyboard input at the same time. I remember for Forge Industry I sometimes used a controller and keyboard at the same time to speed up my movement.
      Can you not just have one action (move for example) with several bindings under it? (for mouse and keyboard)

  • @malindukumaradasa3851
    @malindukumaradasa3851 Před 12 dny

    Thank you!

  • @StickyLabDev
    @StickyLabDev Před 4 měsíci

    i need to have 5 joystick on screen stick , joystick but istruggle to set which joystick should control the correct function, cause it only work with right and left gamepad

  • @gamedevjourney4231
    @gamedevjourney4231 Před 11 měsíci

    Very cool introduction to the Unity Inputsystem. I started using it, but I'm still not familiar with all the possibilities it will bring.

  • @dungeonmaster217
    @dungeonmaster217 Před 29 dny

    Thank you so much. I'm trying to write my own first person contriller based on rigidbodies and input system and all other tutorials overcomplicate things so much it is incredibly frustrating.

  • @channyh.221B
    @channyh.221B Před 11 měsíci +1

    I have 15 minutes to spare, so watching it and commenting on it, should be possible.
    This is a great example of 'show and tell' cause even a noob like me can just begin with this.
    Now thinking of what kind of game I want to write .... that might take a bit longer.
    A waaaaaaaaaaayyyyyyyyyyyyyy bit longer.
    And 3 seconds left. Nailed it!

    • @umutyldrm6838
      @umutyldrm6838 Před 10 měsíci

      what did you do in that remaining 2 minutes ))

    • @channyh.221B
      @channyh.221B Před 10 měsíci

      @@umutyldrm6838 I spend 1 minute and 57 seconds writing the comment and had 3 seconds left to glorify on how well that all went. I say, a good 15 minutes well spent. =D

    • @umutyldrm6838
      @umutyldrm6838 Před 10 měsíci

      @@channyh.221B you must be time management guru then. machina ))

  • @sealsharp
    @sealsharp Před 11 měsíci +1

    The second Thomas-tuesday in a row! Now it's a pattern. Stick to it!
    I like the new input system. It's better, far better than the old magic string based system.
    But it isn't completely thought through though ( like the consistent pronounciation of "-ough" in some english words).
    The InputSystem can create a c# class of itself. That class does not reference the asset, but insteads delivers a duplicate as serialized json within itself. Which means, if you use the c#-class version, but you also have a UI event linked to the InputSystem asset, those are not the same instance which is really not handy when enabling and disabling keymaps when switching states. The c#-version has a reference to it's runtime-created asset and that can be assigned to the event system via code, but it's kinda strange and feels like one of these "did you talk to actual developers when designing this?" moments that tend to happen sometimes with Unity components.
    The rebinding is a little obscure but practical once done.

    • @bitemegames
      @bitemegames  Před 11 měsíci +1

      It's indeed not perfect but still a massive improvement. Not using the class generation feature however.
      -T

  • @rafaelache8650
    @rafaelache8650 Před měsícem

    niceee

  • @jayleo500
    @jayleo500 Před 2 měsíci

    I wish I had seen this before I implemented an input observer from scratch because I thought polling for input in update() was stupid.

  • @evgevg
    @evgevg Před 10 měsíci

    Hello! Thank you for the video. I would like a deeper study of the new input system, for example, how to correctly create a virtual mouse for the gamepad and correctly switch between it and the native mouse. The official example from Unity is bad and doesn't work well.

    • @bitemegames
      @bitemegames  Před 10 měsíci

      I'll annoy Thomas and see if I can get him to make something, no promises though... -M

  • @squonkbot9487
    @squonkbot9487 Před 2 měsíci +1

    I like how I cant add this video to a playlist like I can every other video

  • @avidwivedi840
    @avidwivedi840 Před 21 dnem +1

    Fuck this system, Code is awesome.

  • @krum3155
    @krum3155 Před 11 měsíci

    I tried using the new input system a few years ago but I still prefer the old input system. The new input system just feels bloated and if I want to have a more complex input system I can just make a class that handles the input the way I want it to be.
    Nice video though with good explanations.

  • @oshakiegittens4887
    @oshakiegittens4887 Před 3 měsíci

    Thanks but I rather code. This seems like something that's gonna be deprecated few years from now.

    • @der-Dritte
      @der-Dritte Před 2 měsíci

      The fuck you commenting here for?