NEW INPUT SYSTEM in Unity

  Рет қаралды 691,061

Brackeys

Brackeys

Күн бұрын

Пікірлер: 842
@Brackeys
@Brackeys 4 жыл бұрын
Hey everyone! To those of you who can't find the package: Unity has moved the "Show Preview Packages". You can now find it under Edit -> Project Settings -> Package Manager -> Enable Preview Packages. If you check that box, you should see preview packages in the Package Manager! :-) Stay awesome!
@workflowinmind
@workflowinmind 4 жыл бұрын
Hey brackeys, any update on this, it seems to have changed in the way you initialize and reference the Input class...
@workflowinmind
@workflowinmind 4 жыл бұрын
For those looking for an answer, I found it in this Unity Stream at 19:16 (You have now a Player Input Component) kzbin.info/www/bejne/nYfYpGyGpsuad68
@SirArDheL
@SirArDheL 4 жыл бұрын
Please, we need an updated version of the input system video.
@revengerwizard
@revengerwizard 4 жыл бұрын
@@SirArDheL true, now with the 1.0 version there are many new things
@psinjo
@psinjo 4 жыл бұрын
I know the system has changed a lot in the last year, is this tutorial still up to date enough to make it work?
@cbox_
@cbox_ 5 жыл бұрын
TIP For those doing the tutorial more recently, you can no longer drag the file into the inspector as they changed the backend. You can just do controls = new InputMaster(); in awake to create a new instance of the object.
@Kartikey007agrawal
@Kartikey007agrawal 5 жыл бұрын
I cannot get the Input working with this. I have enabled the control in OnEnable() . Created using new InputMaster() but I still cannot get keyboard input to work with the new system
@OverInfrared
@OverInfrared 5 жыл бұрын
@cbox Thank you that was very weird problem.
@BlaZeLiink
@BlaZeLiink 5 жыл бұрын
thank you , solved my problem!
@pontosinterligados
@pontosinterligados 5 жыл бұрын
That made sense, but I am getting some NullReferenceException from the InputMaster.Initialize(). Now updated to Unity 2019 and seems this video is already obsolete for beginners.
@jayit6851
@jayit6851 5 жыл бұрын
This should be pinned @Brackeys
@NewbNinjas
@NewbNinjas 2 жыл бұрын
This was one of the first videos that I watched when I began my Unity journey. I'm now coding dedicated servers with fusion + azure playfab for an online space shooter game I created as a result of following these tutorials. How far I've come in 5 months is amazing. I stumbled upon this video and noticed my comment from 5 months ago!
@OminousBlast
@OminousBlast 2 жыл бұрын
Amazing man! Whats your game called I'd love to play it
@andheg52
@andheg52 3 жыл бұрын
If you are watching this tutorial now and are looking for the "dpad" option, you have to create an action then change the action type from "Button" to "Value" in menu to the right. Then you have to change the Control type (drop down will appear) from "Button" to "Vector2". Then you can choose an "up/down/left/right composite".
@SgtBurned
@SgtBurned 2 жыл бұрын
Now you can set the Control type to "DPad" and it will allow you to create an "Up/Down/Left/Right Composite" from there.
@toast3
@toast3 2 жыл бұрын
Thank you!
@vahagnmikhailov3698
@vahagnmikhailov3698 2 жыл бұрын
Oh,I want to to thank You soooo much.
@herbertwyndham
@herbertwyndham 2 жыл бұрын
Thank you! One of the hardest things about learning Unity is that the buttons always get moved and renamed, and then it's hard to follow the tutorials, even on their official site.
@inf1nityz3r0
@inf1nityz3r0 Жыл бұрын
thanks man
@SoggyPringles
@SoggyPringles 4 жыл бұрын
Even though you may be gone @Brackeys, you still end up helping in everyway I need. While I hardly knew ye, ye still helped out more than I ever could have thought and for that, you have my eternal gratitude and thanks.
@ski_kid
@ski_kid 7 ай бұрын
what happend with him?
@andythayer5493
@andythayer5493 4 жыл бұрын
Once again, I search the webs for tutorials, find garbage, but then wait - there's Brackeys! Saved the day again, man! Thanks so much!
@WesHawkins0
@WesHawkins0 4 жыл бұрын
Even though it's a few years old, this vid helped me get a jump start on the new input system. Thank you my friend.
@MrEnabie22
@MrEnabie22 Жыл бұрын
This is for real one of the best videos. Every time I come back here to set it up in a new project. Could definately work on my memory 🤣
@totallycrispy1109
@totallycrispy1109 5 жыл бұрын
Brackeys, I really appreciate your content. In 3 months I went from knowing nothing about Unity, to having plenty of knowledge. Thank you, you've been a big help to me. Keep up the good work!!!
@monstereugene
@monstereugene 2 жыл бұрын
im sorry i just found this ironic because he's done with making videos... hope you're well :)
@totallycrispy1109
@totallycrispy1109 2 жыл бұрын
@@monstereugene same
@joeyhernandez3925
@joeyhernandez3925 5 жыл бұрын
There seems to be a lot that has changed. Whilst I have figured most of it out myself I would love an updated video ;). Either way great vids Brackeys!
@blackhawk827
@blackhawk827 3 жыл бұрын
did the code change? if yes do u still have it after a year? could i have it?
@pranavbadrinathan6693
@pranavbadrinathan6693 4 жыл бұрын
Who's here after the Brackeys team have retired? (from KZbin). Its been great, good luck to the Brackeys team!
@eiromplays
@eiromplays 6 жыл бұрын
Another good video from my favorite youtuber. On my birthday :D Keep up the good work man.
@jozatheman
@jozatheman 6 жыл бұрын
Happy bday
@tapiocaseca6935
@tapiocaseca6935 6 жыл бұрын
Hapy barthdei
@eiromplays
@eiromplays 6 жыл бұрын
@@tapiocaseca6935 Thanks
@eiromplays
@eiromplays 6 жыл бұрын
@@jozatheman Thanks
@eiromplays
@eiromplays 6 жыл бұрын
vaidik Gupta thx man and say happy bday to your friend aswell from me
@rorschacht8478
@rorschacht8478 4 жыл бұрын
To anyone as stupid as me (welcome to the club) - You can have both the new and the old input systems enabled simultaneously (without errors!) by going to Project Settings > Player > Other settings > Enable both This way your game isn't an error simulator while converting to the new input system. Well done Unity, for thinking about this. Also; Great tutorial Asbjørn, thank you! (I'll call you by name from now on, since Brackys is no more... *Sad noises*).
@Destrio_Fury
@Destrio_Fury 3 жыл бұрын
Great! I deleted the project which I merged from two different project consisting different input systems, I wasn't able to keep up with the errors. If I wanted to continue, I would have to write other side from scratch with all the new way or older input dealings. Every time I successfully implement something in unity, just to find out that next feature I want to add is not compatible with my just implemented effect. If I want to use the functionality available, It's either remake using the available tools or code the features I want to add from scratch without using those tools. In a single day first Cinemachine, then input system got me done... Now I am thinking of prototyping the same thing using these two... Gods have mercy on me. And give me wisdom to check for any other tools I could take advantage of, with prior notice.
@NewbNinjas
@NewbNinjas 2 жыл бұрын
For you guys who get the error: NullReferenceException: Object reference not set to an instance of an object Player.Awake () Just add this code at beginning of the Awake() block..... : controls = new InputMaster(); This should fix the issue, this had me stumped for 20 minutes. Thanks to everyone who continues to help me along the way. :)
@vedarovski4110
@vedarovski4110 2 жыл бұрын
Thanks a lot. You saved me.
@beesyrup5494
@beesyrup5494 2 жыл бұрын
You are a saint and hero
@alpha3836
@alpha3836 2 жыл бұрын
it doesn't work for some reason here's my code: public class PlayerScript : MonoBehaviour { public InputMaster controls; void Awake() { controls = new InputMaster(); controls.Player.Shoot.performed += s => Shoot(); } private void OnEnable() { controls.Enable(); } private void OnDisable() { controls.Disable(); } void Shoot() { Debug.Log("WE shot a bullet!"); } }
@antoniovedivici6202
@antoniovedivici6202 4 жыл бұрын
In case of you are coming from the "FPS tutorial" and got question marks over your head, why the fudge there is no >mouse control< explanation...: mouseX = Mouse.current.delta.x.ReadValue() * mouseSensitivity * Time.deltaTime; mouseY = Mouse.current.delta.y.ReadValue() * mouseSensitivity * Time.deltaTime;
@willb4838
@willb4838 4 жыл бұрын
thx iv'e been looking for this
@Rook-ec7sl
@Rook-ec7sl 4 жыл бұрын
you are a legend
@Jojo43O9
@Jojo43O9 4 жыл бұрын
TY
@seraphimsarecoool
@seraphimsarecoool 4 жыл бұрын
what the heck is that syntax xD
@pitchYellow2973
@pitchYellow2973 3 жыл бұрын
this comment is the best tutorial for the new input system on the entire internet
@folfex1971
@folfex1971 4 жыл бұрын
the dpad is now labeled as 2d vector, you right click the actions and it is listed there
@ThomasJeff4s0n
@ThomasJeff4s0n 4 жыл бұрын
THANK YOU!
@45sbdfbfd9
@45sbdfbfd9 3 жыл бұрын
Thanks a lot!
@mstyslava
@mstyslava 3 жыл бұрын
Thank you!
@warningshotdesigns
@warningshotdesigns 3 жыл бұрын
I can't seem to find that at all, I only see add binding, add positive/negative binding, add binding with one modifier, add binding with 2 modifiers.
@Nicken_Tenders
@Nicken_Tenders 3 жыл бұрын
@@warningshotdesigns If you right click the action itself, it'll ask you if you want to "Add 2D Vector Composite". I wish I could tell you why that's there, hidden away, but... ¯\_(ツ)_/¯
@umaryusuf12
@umaryusuf12 6 жыл бұрын
Yooo finally a new video I literraly wait all week 4 new videos Even I don't use that 1 in particular brackeys just makes it so fun . Tnx a bunch guys keep up the good work👍👍
@clamum
@clamum 6 жыл бұрын
LITERALLY LITERALLY LITERALLY LITERALLY LITERALLY LITERALLY LITERALLY
@maltedwheaties3339
@maltedwheaties3339 4 жыл бұрын
Alot has changed in the 2020.1, and there aren't that many videos covering it...
@psinjo
@psinjo 4 жыл бұрын
I too would love to see an updated video :)
@robertward960
@robertward960 4 жыл бұрын
@@psinjo I second that
@MoonLiteNite
@MoonLiteNite 4 жыл бұрын
As someone who is new to unity, this is killing me. At least i got basic movement to work. Now trying to get it to work with touch input, NOTHING on youtube on it:(
@zymolyticzulu5310
@zymolyticzulu5310 4 жыл бұрын
@@MoonLiteNite same
@kyrannosaurgaming8485
@kyrannosaurgaming8485 4 жыл бұрын
There is a video here of someone making basic FPS controls: kzbin.info/www/bejne/eKeWo4yAgrmgr8U
@ralofpatel470
@ralofpatel470 6 жыл бұрын
I find this more complicated than earlier one. But it is more powerful.
@-.._.-_...-_.._-..__..._.-.-.-
@-.._.-_...-_.._-..__..._.-.-.- 4 жыл бұрын
If you can't drag in the InputActionAsset into your script (as shown at 11:50) because the field isn't there, instantiate the object in your Awake() method instead. Do something like this: private void Awake() { controls = new Controls(); controls.Player.Shoot.performed += ctx => Shoot(); } Also, for 13:37, if you're getting errors after testing the code, ensure the return type ('Vector2' in the video) agrees with the return (composite) type of the action.
@bluefakederblauere2099
@bluefakederblauere2099 4 жыл бұрын
dont forget .Enable()! else it somehow doesnt work
@SyPhase
@SyPhase 2 жыл бұрын
controls = new InputMaster(); But I got what you meant, and it SAVED me, thanks
@augustomarques292
@augustomarques292 2 жыл бұрын
thx!
@cheker12354
@cheker12354 6 жыл бұрын
With this event based system, programming inputs is going to be way more structured, love it!
@joshbishop
@joshbishop 6 жыл бұрын
This is great! Dude, I love your videos, they're amazing and have taught me so much with Unity. Keep up the good work!
@aussieraver7182
@aussieraver7182 2 жыл бұрын
9:20 If you cannot see the InputManager property in the inspector, you may need to initialise it programatically. Within the void Awake() method, write this: InputMaster = new InputMaster();
@ichoupettev4661
@ichoupettev4661 2 жыл бұрын
Thanks for the tip
@SyPhase
@SyPhase 2 жыл бұрын
controls = new InputMaster(); Thanks man, I was wondering what was wrong.
@beerfrad6447
@beerfrad6447 6 жыл бұрын
My thoughts before watching were "Oh why do we need this, the old system is good enough, I can do anything there". I'm honestly surprised how much better this is and I did not expect this. I never even realized how clunky the old system was, and I just kind of got used to writing the input checks in Update() which in hindsight is so messy readability-wise. I can't wait for the new input system to make into unity proper now. And thanks for the video!
@47Mortuus
@47Mortuus 4 жыл бұрын
I don't get it. Declaring 20 delegates in an Awake() or listening for 20 Input states in Update() is like exactly the same "mess" - all of it happens in the same class either way. Unless... Of course... you don't have an InputManager and your copy-pasted Brackeys scripts are like "Weapon: MonoBehaviour { Update() { if(Input([...]
@jayjoonprod
@jayjoonprod 4 жыл бұрын
It´s Christmas, I´m interested in Unity new input system and youtube recommends just the right video for me
@emilemil1
@emilemil1 4 жыл бұрын
I haven't checked and I'm not entirely familiar with C# syntax, but I believe you can also do: controls.Player.Movement.performed += Player.Move void Move (InputAction.CallbackContext context) { ... } In case you want to get rid of the intermediate lambda.
@falxie_
@falxie_ 4 жыл бұрын
Thanks Brackeys, gonna miss your videos
@Bonfere
@Bonfere 3 жыл бұрын
I miss Him SOOOOO Much! :(
@cloudgazer3d
@cloudgazer3d 4 жыл бұрын
"This year is gonna be fun" didn't age well ^^'
@QS1597
@QS1597 4 жыл бұрын
It did not
@thesweetembraceofnonexiste3740
@thesweetembraceofnonexiste3740 4 жыл бұрын
I mean, 2019 *was* okay. It's just *2020* that's going down the drain.
@pandacatplayz
@pandacatplayz 4 жыл бұрын
2020 score: 1 2019 score: 300
@RealCaptainAwesome
@RealCaptainAwesome 4 жыл бұрын
Wait until you get the July update.
@zzedixx
@zzedixx 4 жыл бұрын
@@pandacatplayz actually, 2019 score: 300, 2020 score: cOrOnAvIrUs even worse, brackeys ended his channel (no more new uploads) 2020 is the worst year in history.
@stevencruz978
@stevencruz978 4 жыл бұрын
Thank you for these tutorials Brackeys! 10,000x better than Unity docs and the hard work you put into these shows. :)
@leonardojensen2654
@leonardojensen2654 4 жыл бұрын
Yeah brackeys really are on a god level when teaching people
@varKristjansson
@varKristjansson 6 жыл бұрын
I don't code but your voice is really nice and I like falling asleep listening to it
@darkfafi
@darkfafi 6 жыл бұрын
You should really not use anonymous methods here... For every +=, you have to call a -= as well. Else the game breaks because events are still triggered after destruction, because the methods live within their own reference.
@SkrekkLich
@SkrekkLich 6 жыл бұрын
Maybe directly pass the context, this way he wouldn't need the lambda ... Or how he calls it "the weird syntax"
@proe4414
@proe4414 6 жыл бұрын
Yeah, he should have mentioned that. Ohh I already see headaches from beginners with this new system... It hurt me bad when I heard "the weird syntax" D:
@Trojaner
@Trojaner 6 жыл бұрын
Yes, one should definitly do -= when OnDestroy occurs; otherwise GC will not be able to collect the object.
@seansopata5121
@seansopata5121 6 жыл бұрын
Well, after watching many of his videos, I've been less than impressed with his programming. Functional, sure, but seriously terrible for optimization.
@HippieJavelin99
@HippieJavelin99 6 жыл бұрын
So... what's the best practise?
@emmanuelperez48
@emmanuelperez48 4 жыл бұрын
oh Brackeys, I miss you so much
@miikey_lol
@miikey_lol 6 жыл бұрын
Merry Christmas!
@sailinglighthouse144
@sailinglighthouse144 6 жыл бұрын
it must be Christmas, we got Unity
@pixelcats2647
@pixelcats2647 6 жыл бұрын
Christmas is gone
@miikey_lol
@miikey_lol 6 жыл бұрын
@@pixelcats2647 only 362 days to the next one though!
@ForProsOnlyCom
@ForProsOnlyCom 4 жыл бұрын
you are wrong
@miikey_lol
@miikey_lol 4 жыл бұрын
@@ForProsOnlyCom at the time I wasnt
@thecodeanvil5779
@thecodeanvil5779 3 жыл бұрын
For anyone who installed the new system and your project is broken, go to Edit>Project Settings>Player>Other Settings and then find 'Active Input Handling' and change it to either 'Input Manager(Old)' or 'Both' and then your old code will work. Hope this helps!
@UrbanArT69
@UrbanArT69 3 жыл бұрын
Sheesh thank you for this, didn´t even know this was a thing
@gomango99
@gomango99 3 жыл бұрын
You're a lifesaver! For some reason I couldn't get keyboard input to work with the new one but still wanted Controller support
@Buxzy6613
@Buxzy6613 3 жыл бұрын
wow bro you are a life saver jesus been implementing Input in other functions but it dint seem to work since I have the new input system some tutorials that i find have barely any new input system fixes thx for this comment ill sub for your channel just by that
@theeternal6890
@theeternal6890 4 жыл бұрын
*I feel the older system was much easier.*
@thatsalot3577
@thatsalot3577 3 жыл бұрын
yes😢
@jonathanpaz8974
@jonathanpaz8974 3 жыл бұрын
agreed
@HomingAsatoMass
@HomingAsatoMass 3 жыл бұрын
As are the input systems in both other engines I have been using so far lol. I have no idea who thought this would be a good idea
@toastyshrimp1882
@toastyshrimp1882 3 жыл бұрын
@@HomingAsatoMass it IS a good idea. You no longer clog the update function with endless calls, you can fire events, and setting up multiple input systems is literally seamless. Have you written a PlayerController that was even mildly complex? Unity falls apart damn near instantly on anything other than very basic movement. What exactly is bad about it? That it's more complex? I hate to break it to you, making a game is complex. If you think handling events for input is too complicated, you're never going to ship a game. Not only that, but you even get the option of keeping the old input system, although god knows why someone would want to.
@HomingAsatoMass
@HomingAsatoMass 3 жыл бұрын
@@toastyshrimp1882 you can design a complex system in a way that makes it intuitive to approach for people, and takes care of certain barriers for them until they choose to engage with those aspects of the system. (I think I already wrote you a reply once, no idea what happened to that. This is the short version)
@sailinglighthouse144
@sailinglighthouse144 6 жыл бұрын
Merry Christmas Brackeys, it must be Christmas, we got Unity
@alinawaz4034
@alinawaz4034 6 жыл бұрын
Unity is going amazing day by day!!!
@mojojojo5304
@mojojojo5304 3 жыл бұрын
You can enable both input system. Edit > project settings > player > configuration > active input handling.
@xiolostudios
@xiolostudios 3 жыл бұрын
Yes
@alielhefnawey5764
@alielhefnawey5764 3 жыл бұрын
Thanks alot for this info. I apretiate your help
@neozoid7009
@neozoid7009 3 жыл бұрын
Awesome I also love working with unity every day
@MikolasCage
@MikolasCage 6 жыл бұрын
Keep up the great work man, always nice to see your notification pop up ^^
@jabocdawookie123
@jabocdawookie123 4 жыл бұрын
For anyone having trouble with this, delete any input action asset that you have in your assets. Add the player input component to your player object in the inspector. Then click on create actions and use that, it will automatically create move and fire action for you.
@i_am_reshad
@i_am_reshad 2 жыл бұрын
best explanation ever. be back Brackeys
@rds6129
@rds6129 6 жыл бұрын
This is basically the adapter design pattern, neat!
@bence0302bence
@bence0302bence 6 жыл бұрын
I've never been so hyped for a new feature in Unity before!
@AmiDeLaMusique
@AmiDeLaMusique 4 жыл бұрын
Awesome tutorial - has helped me a great deal. Very nice explanation of the mechanics behind the new input system. Thanks a lot!
@susu5331
@susu5331 3 жыл бұрын
This tutorial is very outdated (unlike his other great tutorial vids). If you're watching this cuz you're like me (being a big fan and wanting to learn the new input system), choose another tutorial, far too many changes have taken place since Unity 2019 and the script shown here is basically of zero use at this point.
@KeithSwanger
@KeithSwanger 6 жыл бұрын
Until this new input system becomes robust and reliable, I think Rewired is still the best input solution for Unity at the moment. It would be great to not have to rely on a third party though!
@freezxify
@freezxify 6 жыл бұрын
Came here to say the same. Not even close to the robustness and feature set of ReWired.
@songersoft
@songersoft 6 жыл бұрын
It reminds me of Rewired tho. Glad to hear Rewired is still a good purchase.
@Trojaner
@Trojaner 6 жыл бұрын
/sellout
@Trojaner
@Trojaner 6 жыл бұрын
Why would anyone use some third party asset when you can have a standard official one supported by Unity
@KeithSwanger
@KeithSwanger 6 жыл бұрын
You're basically asking: Why does the Unity Asset Store exist? Come on, dude.
@obalfaqih
@obalfaqih 6 жыл бұрын
Thanks! Pretty informative as always 👌🏻
@XtroTheArctic
@XtroTheArctic 4 жыл бұрын
I really can't believe that you defined an extra lambda method instead of simply applying the correct event signature to the Shoot method and add it to the event directly.
@Hamstermoviespro
@Hamstermoviespro 6 жыл бұрын
Wow this looks awesome! Thanks for making a video on it!
@ArthurCousseau
@ArthurCousseau 6 жыл бұрын
If I were a beginner, at 15:20 I could basically hear "or you can forget the last 15 minutes and just write 3 lines of code" :D
@jorgevital89
@jorgevital89 5 жыл бұрын
Lol
@mp3_45
@mp3_45 3 жыл бұрын
Thnx Miss you guys...
@thatanimeweirdo
@thatanimeweirdo 6 жыл бұрын
I was literally thinking about asking you to make a video on it when I installed the preview package yesterday!
@KonnasTrashHeap
@KonnasTrashHeap 6 жыл бұрын
This seems like a big improvement. Really hoping that the single generic "gamepad" scheme option implies we no longer have to do inputs for different types of pads (xbox, ps4 etc) separately.
@smitasushilbhegde3655
@smitasushilbhegde3655 2 жыл бұрын
while downloading the asset be sure to close Visual studio or monodevelop
@ayansyed4586
@ayansyed4586 4 жыл бұрын
Godot Input System Is so good compared to any other engines
@Tenzordk
@Tenzordk 5 жыл бұрын
Hey bro(kyes) will you be making a updated version of the video? Thanks!
@apersonthatsucksatnames1133
@apersonthatsucksatnames1133 4 жыл бұрын
sadly never again :(
@EchoPrograms
@EchoPrograms 4 жыл бұрын
:'(
@apersonthatsucksatnames1133
@apersonthatsucksatnames1133 4 жыл бұрын
:',C
@MrDylanButton
@MrDylanButton 4 жыл бұрын
;-;
@MrDylanButton
@MrDylanButton 4 жыл бұрын
@NATHAN SKROBARCZYK Nah it says that on my screen for yours, its cuz you got notified about t my comment
@djrios06
@djrios06 6 жыл бұрын
For the FPS can you teach us how to create an inventory and a hotbar???
@nonamegode2321
@nonamegode2321 4 жыл бұрын
Is it possible That you can make aa new tutorial on how to use the InputSystem(it is a little out of date)?
@ehallam08
@ehallam08 6 жыл бұрын
Dwight is the best! I'm actually watching the office right now.
@betagamestudio5260
@betagamestudio5260 4 жыл бұрын
Hey Brackeys, it would be great if you made a video on user customizable controls with the new input system.
@In-N-Out333
@In-N-Out333 6 жыл бұрын
He uploaded this video on a Thursday. Hopefully he's going back to uploading twice a week, and this isn't just a delayed Sunday video.
@Dxpress_
@Dxpress_ 6 жыл бұрын
The holidays just passed, so the uploads should be returning to normal.
@wombatZ
@wombatZ 6 жыл бұрын
Merry Christmas Brackeys
@andreutu
@andreutu 5 жыл бұрын
Make 2D movement and animations with this input system in Unity 2019
@Daemonworks
@Daemonworks 6 жыл бұрын
This is going to make it /so/ much easier for developers to ensure their games are friendly for folks who have physical disabilities.
@stephanebessette6471
@stephanebessette6471 3 жыл бұрын
New Unity version requires that we instantiate the class in Awake() i.e. controls = new InputMaster();
@FowlArtemis2nd
@FowlArtemis2nd 6 жыл бұрын
Can you provide a tutorial for multiple controllers (for a co-op game, for instance)?
@sky_guy1274
@sky_guy1274 5 жыл бұрын
FowlArtemis2nd try creating an action map foreach character in your game maybe thats gonna work
@atmunn1
@atmunn1 6 жыл бұрын
this is amazing i'm never using the old system again
@eclipixie536
@eclipixie536 3 жыл бұрын
a bit of advice: you don't have to do the control scheme thing at 6:00; you can just set up multiple bindings in one action and make one for keyboard/mouse, and one for whichever controller you're using also you don't need the Using line up the top.
@vegguid
@vegguid 6 жыл бұрын
Merry new year!
@ritasharon4061
@ritasharon4061 6 жыл бұрын
Have a great year ahead. Can you please do a video about coin system like adding coins collected from each level to total coin count!!
@1e1001
@1e1001 6 жыл бұрын
Just have some persisting gameobject and have it keep track of your total coin count and coin count per level or whatever
@ritasharon4061
@ritasharon4061 6 жыл бұрын
@@1e1001 I am new to unity so I am not sure on how to do that. I tried but it's throwing garbage values or random code. Can you share your email please
@CookieCraftMedia
@CookieCraftMedia 6 жыл бұрын
This new system looks much more simple yet you get a better overview for the controls of your project. These new features are nice and all but... I NEED THE UNITY DARK THEME
@oriconceptarts3233
@oriconceptarts3233 3 жыл бұрын
Thanks , This is really stupid simple after understanding delegates.
@Moon-to9se
@Moon-to9se 6 жыл бұрын
Блин так, радует, что земляки входят в список. Brackeys, thanks!
@MrAlbytheworm
@MrAlbytheworm 5 жыл бұрын
Thanks for the tutorial. Any chance on making a tutorial for mobile using virtual joystick or touch with the new input system
@desmondmies3095
@desmondmies3095 4 жыл бұрын
Well i've finally got a fully working Rebindable Input System with the new input system, that works QWERTY and AZERTY, finally !
@techr5337
@techr5337 6 жыл бұрын
Brackeys I Request u please start a new unity basics series using new tecniques and functions pls.I want to learn unity coading
@volatilisjackal
@volatilisjackal 4 жыл бұрын
id love to know how i would use bolt and the new input system.
@clydemarindo3177
@clydemarindo3177 6 жыл бұрын
Brackeys can you do a random dungeon tutorial like Enter the gungeon, that would be very awesome
@starsquad9814
@starsquad9814 4 жыл бұрын
Here is a video on an updated version of the new input system. Which is like Enter the gungeon. kzbin.info/www/bejne/fmO1falmlryIeJI
@jumpingjesus94
@jumpingjesus94 6 жыл бұрын
Could you do a video on persistence between scenes?
@juliancapeloni2156
@juliancapeloni2156 4 жыл бұрын
Hi! I could make it jump calling a function OnJump() and changing rigidbody velocity. And it works! Also I’ve implemented another function called OnMove() that change the value of a variable. Then in another function I change the rigidbody velocity, and executed in the update. Walking works fine. But if I try to jump now the player moves a bit and start falling.
@Vimerum
@Vimerum 6 жыл бұрын
Is there a easy way of changing the inputs in-game with this new system? Because the old one is pretty hard to do so without an asset from asset store.
@wokarol
@wokarol 6 жыл бұрын
As far as I know, they will made an API for it
@Vimerum
@Vimerum 6 жыл бұрын
@@wokarol That would be great!
@Owen3H
@Owen3H 6 жыл бұрын
Just use an input manager.
@Octamed
@Octamed 6 жыл бұрын
That is half the reason they're making this. It'll come
@ZoidbergForPresident
@ZoidbergForPresident 6 жыл бұрын
Like changing the input asset I guess, on runtime? But this video doesn't explain that... It'd be nice too to select a specific scheme depending on the current keyboard layout so that players can start playing whether they have a qwerty or azerty layout...
@mr.nutmeg5429
@mr.nutmeg5429 3 жыл бұрын
The office is a turning point for vpns everyone says that thats their favorite part of them
@Draxi_1
@Draxi_1 6 жыл бұрын
reminds me of the new SteamVR input system.
@notnanomercy
@notnanomercy 6 жыл бұрын
wow that time! yesterday i try that
@zig8925
@zig8925 6 жыл бұрын
Dude! Christmas was 3 days ago!
@shizounu2480
@shizounu2480 6 жыл бұрын
Can you do a video on Delegates, Events & Lambda expressions please? I think It'd be very usefull as an addition to this
@mandisaw
@mandisaw 6 жыл бұрын
Pretty sure Delegates & Events are covered by Unity Learn scripting tutorials on the main site. Lambda expressions aren't covered by Unity AFAIK, but they are in a *lot* of modern languages, so you can find info on them everywhere from Microsoft's own C# docs to KZbin. My problem is I always screw up the syntax for lambda/closures between C#, Java, and Swift :p
@Misterlikeseverythin
@Misterlikeseverythin 5 жыл бұрын
How do I get input from multiple controllers? Like 2 players using different gamepads in Mortal Kombat?
@superhardboiled8732
@superhardboiled8732 5 жыл бұрын
I made a simple tutorial here that shows how to do local multiplayer. Hope you find it useful: kzbin.info/www/bejne/emnRhnxubbWCi5o
@Szwejk92
@Szwejk92 6 жыл бұрын
I'd love it if you would make a separate series reviewing Unity assets/tools (mostly technical stuff) from their Asset Store..
@ritoon2223
@ritoon2223 Ай бұрын
bro, this guid is very helpful, but how to make 3d character controller (with character controller and new input system)?
@CnekYT
@CnekYT 5 жыл бұрын
As of right now, it's different and that there is no Input Manager. Can you please make an updated one, thank you.
@whoisgliese
@whoisgliese 4 жыл бұрын
The script isnt recognizing the InputMaster class, anyone else with this problem?
@ritumalhotra6477
@ritumalhotra6477 4 жыл бұрын
I don’t know if you have fixed this problem or not but try typing ImputMaster instead of InputMaster.
@kristech_io
@kristech_io 4 жыл бұрын
Make sure you first click the InputMaster asset, check the Generate C# Class checkbox, Apply it. Then in your script, because of an update, you'll have to do `InputMaster controls`. And in your `Awake()` method, you'll need to set it like so: `controls = new InputMaster()`. There's no more clicking and dragging it to a slot in the Inspector. You'll have to create it via your script.
@maistrogaming7911
@maistrogaming7911 4 жыл бұрын
Wtf....I almost broke my glasses and my eyes and my brain....at once.... Man what a complex video...or a youtuber to be exactly
@klerta
@klerta 6 жыл бұрын
yes, I've been waiting for this!!
@kuuo6647
@kuuo6647 6 жыл бұрын
love the new Input System. BTW. In Unity 2018.3.0, you can install the Input System within Package Manager
@duduostie
@duduostie 5 жыл бұрын
Stupid question. How do I do that? I'm new and just want to begin with Unity with this way for the controls but I don't know how to add it to Unity even by Unity Hub.
@benjamins9980
@benjamins9980 4 жыл бұрын
Thank you very very much
@dracheneintopf3654
@dracheneintopf3654 3 жыл бұрын
I have a big Problem, around minute 12 you drag the InputMaster on the Controls Field of Your Script. I don't have these Field, why, may script is exactly the same?
@fabi3195
@fabi3195 6 жыл бұрын
Hey brackeys I love your videos :D can you please make a tutorial about add adds and product placement in games?
@RedstoneinventeArmoredGuy
@RedstoneinventeArmoredGuy 6 жыл бұрын
Hi brackets, can you make a video on how hard it is to get very good graphics and what are they key parts to attain those graphic?
FIRE AND SMOKE with Unity VFX Graph!
13:57
Brackeys
Рет қаралды 373 М.
InputSystem в Unity, разбираемся, с чем его едят
16:15
Лавка Разработчика
Рет қаралды 11 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Residential Dimensions in REVIT 2025
11:22
MrRincon BIMConsulting
Рет қаралды 2
How to MAKE YOUR GAME LOOK GOOD!
13:02
Brackeys
Рет қаралды 605 М.
Unity Controls Rebinding in 13 minutes
13:08
BiteMe Games
Рет қаралды 2,5 М.
CONTROLLER INPUT in Unity!
16:44
Brackeys
Рет қаралды 377 М.
Unity's "NEW" Input System with C# Events
16:46
One Wheel Studio
Рет қаралды 94 М.
Why you should switch to Unity's New Input System (and how easy it is)
9:51
Jason Weimann (GameDev)
Рет қаралды 34 М.
HOW TO GAME JAM!
9:01
Brackeys
Рет қаралды 292 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 284 М.
Unity's NEW input system in 13 minutes
13:02
BiteMe Games
Рет қаралды 38 М.
2D Platformer Movement With Unity's New Input System
7:21