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

Пікірлер: 29

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

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

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

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

    Thanks for this

  • @malindukumaradasa3851
    @malindukumaradasa385122 күн бұрын

    Thank you!

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

    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

    9 ай бұрын

    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

    9 ай бұрын

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

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

    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 Жыл бұрын

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

  • @fokeyjo
    @fokeyjo Жыл бұрын

    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

    Жыл бұрын

    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)

  • @channyh.221B
    @channyh.221B Жыл бұрын

    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

    10 ай бұрын

    what did you do in that remaining 2 minutes ))

  • @channyh.221B

    @channyh.221B

    10 ай бұрын

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

    10 ай бұрын

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

  • @sealsharp
    @sealsharp Жыл бұрын

    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

    Жыл бұрын

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

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

    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.

  • @jayleo500
    @jayleo5003 ай бұрын

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

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

    niceee

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

    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

    11 ай бұрын

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

  • @squonkbot9487
    @squonkbot94872 ай бұрын

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

  • @bigmanontheinternet3824

    @bigmanontheinternet3824

    Ай бұрын

    its weird. I refreshed then it worked.

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

    Fuck this system, Code is awesome.

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

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

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

  • @der-Dritte

    @der-Dritte

    3 ай бұрын

    The fuck you commenting here for?

Келесі