Unity's NEW input system in 13 minutes

Тәжірибелік нұсқаулар және стиль

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

Пікірлер: 26

  • @VinceColletti
    @VinceColletti4 ай бұрын

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

  • @DavidEarle
    @DavidEarle6 ай бұрын

    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!

  • @moshecristel
    @moshecristel7 ай бұрын

    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

    7 ай бұрын

    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

    7 ай бұрын

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

  • @StickyLabDev
    @StickyLabDev3 ай бұрын

    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

  • @fokeyjo
    @fokeyjo10 ай бұрын

    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

    10 ай бұрын

    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)

  • @MalikenGD
    @MalikenGD9 ай бұрын

    Thanks for this

  • @gamedevjourney4231
    @gamedevjourney423110 ай бұрын

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

  • @channyh.221B
    @channyh.221B10 ай бұрын

    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

    9 ай бұрын

    what did you do in that remaining 2 minutes ))

  • @channyh.221B

    @channyh.221B

    9 ай бұрын

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

    9 ай бұрын

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

  • @squonkbot9487
    @squonkbot9487Ай бұрын

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

  • @bigmanontheinternet3824

    @bigmanontheinternet3824

    6 күн бұрын

    its weird. I refreshed then it worked.

  • @jayleo500
    @jayleo500Ай бұрын

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

  • @sealsharp
    @sealsharp10 ай бұрын

    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

    10 ай бұрын

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

  • @rafaelache8650
    @rafaelache865014 күн бұрын

    niceee

  • @evgevg
    @evgevg9 ай бұрын

    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

    9 ай бұрын

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

  • @krum3155
    @krum315510 ай бұрын

    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
    @oshakiegittens48872 ай бұрын

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

  • @der-Dritte

    @der-Dritte

    Ай бұрын

    The fuck you commenting here for?

Келесі