Тёмный
No video :(

How to use Unity's Input System 

samyam
Подписаться 80 тыс.
Просмотров 145 тыс.
50% 1

How to use the new input system in Unity! I go over installing the package, the different ways to use the input system, and the recommended way!
ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
sam-yam.itch.i...
📥 Get the Source Code 📥
/ 55295489
►🤝 Support Me 🤝
Patreon: / samyg
Donate: ko-fi.com/samyam
🔗 Relevant Video Links 🔗
ᐅALL of my Input System videos
• Unity's NEW Input System
ᐅInput System Documentation
docs.unity3d.c...
ᐅInput System Changelog (features and fixes in different versions)
docs.unity3d.c...
ᐅMigrate From Old Input System
docs.unity3d.c...
ᐅUnsubscribe Lambda Event Handler Stack Overflow Discussion
stackoverflow....
This video goes over installing the Input System via Unity's Package Manager, creating an Input Action Asset and assigning an action map, making several actions of different Action Types and assigning multiple bindings to each, mentioning Interactions, Processors, and Control Schemes available, Generating a C# class from the Input Action Asset and referencing it in code, subscribing to the different events that the actions send (started, performed, cancelled), getting the values from the actions directly, using the PlayerInput component to get the values instead (lots of nice helper functions here), assigning an InputAction through the Inspector along with getting a reference to an existing action through an InputActionReference (you can also reference a map!), creating actions dynamically through code, using the Input Debugger to see your actions at runtime, and going over the Migrate from Old Input System guide that Unity posted.
Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!
😎 Cool Unity Assets 😎
ᐅPeek - Editor Toolkit: assetstore.uni...
ᐅEditor Console Pro: assetstore.uni...
ᐅRainbow Folders 2: assetstore.uni...
►⏱️ Timestamps ⏱️
0:00 Install
1:18 Intro
1:51 Input Action Asset
3:57 Value vs Passthrough
4:20 Assign Binding to Action
4:40 Input System Events (Started, Performed, Canceled)
5:16 Multiple Bindings to Action
5:43 2D Vector Composite
7:42 Interactions
8:34 Processors
8:57 Modifiers
9:17 Control Schemes
10:12 Generate C# Script Overview
11:48 Generate C# Script Usage
18:30 PlayerInput Component
23:24 Event Lambdas
24:39 Enable UI for the Input System
24:54 Input Debugger Short Preview
25:08 Migrate From Old Input System
26:29 InputAction & InputActionReference
27:30 Dynamic InputActions through Code
30:30 Outro
💖💖THANK YOU TO ALL MY PATRONS 💖💖
❯❯❯ My Links ❮❮❮
💗 Patreon 💗
/ samyg
💬 Discord Server 💬
/ discord
🐦 Twitter 🐦
/ samyam_utube
📚 Facebook 📚
/ samyam.youtube
🎵 Music 🎵
Fretless by Kevin MacLeod
Link: incompetech.fi...
License: creativecommons...
👍 Like and Subscribe! 👍
🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
www.amazon.com...
#unity3d #unitytutorial #unity2021

Опубликовано:

 

17 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 261   
@Dailyfiver
@Dailyfiver 2 года назад
Seriously these input tutorials are the highest quality I have seen on youtube. Blowing my mind with how clear everything is to me now!
@samyam
@samyam 2 года назад
Thanks again 😆
@MLaurenavicius
@MLaurenavicius 2 года назад
I share the same opinion and I've watched 300+ tutorials
@alexleonardkrea
@alexleonardkrea Год назад
I have seen a lot of input system tutorials but this tutorial is by far the best overview I have seen. You did a really good job showing all the options available and laid out your opinions very well on each of them. Thank you for putting in the time to make this! It will be my new go-to-video suggestion for people learning the new input system.
@maazadnan8550
@maazadnan8550 2 года назад
I would like to tell you that these are amazing, while almost every other youtuber simply goes through the process of setting it up and using different unity components, you actually explain them and the logic behind each and every thing, thank you!
@samyam
@samyam 2 года назад
Thanks! 😁
@ultimatesin3544
@ultimatesin3544 2 года назад
I gotta say, thank you so much for your indepth tutorial that covers all avenues of implementation instead of the typical narrow "quickest route".. so nice to finally see a unity dev who understands SOLID and access modifiers and why public methods should be minimized. Coming from other platforms I'm kinda surprised the lack of comprehensive docs for alot of Unity stuff, anyway your tutorials are great!
@samyam
@samyam 2 года назад
Thanks! Glad you found it useful! :)
@abdoreda7126
@abdoreda7126 9 месяцев назад
Exactly! you took the words right out of my mouth!
@facejets
@facejets 2 года назад
I often get a lot out of train-of-thought type of follow-along stuff in unity, but I'm six minutes in and subscribed, and a little bit excited. It's not just the organization; your voice carries my attention, which I really need for topics like this
@samyam
@samyam 2 года назад
Thanks so much! Very glad you enjoyed the video, lots more on the channel and coming up! :D
@TheAgavi
@TheAgavi 2 года назад
@@samyam I just want to second this. So many youtube tutorials are all over the place but you really went step by step. This video was a godsend. Subbed.
@samyam
@samyam 2 года назад
So happy to hear thank you!! 😄
@justincarlson4057
@justincarlson4057 2 года назад
thank you for this. ive watched other input system explanations but they often dont go over the full options of implementation (im taught how to use component but not how to get constant values from it directly) and so i was left using a weird combination of the generated class and the component since i was only shown a how to do certain things using certain ways. Also i appreciate explaining that one can make input action variable to avoid typing strings constantly and risking mistyping. Now I know to look for ways to avoid that not just with this, but with all my code. great tutorial overall and very well organized and explained.
@EfrainJMDev
@EfrainJMDev 2 года назад
I have given a chance to the new input system multiple times but I always rejected it because other tutorials made it look very complicated, I'm finally using it thanks to you!
@dmtuan
@dmtuan 2 года назад
The bit near the end about InputAction & InputActionReference is the interesting part :D.. I can see this integrating into many scenarios well. Thanks for the video
@gilireeves4956
@gilireeves4956 Год назад
This video is so good! You explain the system so well and go over everything important, but you don't overexplain. I keep coming back to the video every time I need to set an input system for a game to remind myself how to do it and it always clears up everything.
@chunkyquail
@chunkyquail 2 года назад
The most comprehensive tutorial on the "New" Input system. Thanks.
@samyam
@samyam 2 года назад
Yay! Thanks 😁
@dongminkim8100
@dongminkim8100 2 года назад
This is extremely helpful lol. I had seizure from TL;DR syndrome when I tried to go through the manual by myself. Thanks
@mailmaxxxx
@mailmaxxxx 2 года назад
By far the best video on the "new" input system I have seen (and I have seen A LOT). Personally I would have preferred you to show your preferred option and not digress - save that for other videos - as now I need to watch again to remind myself! I'm going off now to watch your other videos - as I'm especially interested in cross-platform options (so touch for mobile vs keyboard and mouse for PC vs Controller for console, and how I can manage them all as simply as possible...
@stylie473joker5
@stylie473joker5 2 года назад
my mind was blown away when i set up the new input system i moved my character with keyboard and mouse and then tried a ps4 controller it worked perfectly and in real time
@samyam
@samyam 2 года назад
Thank you so much!!
@mailmaxxxx
@mailmaxxxx 2 года назад
@@samyam I did go off and watch some of your other videos - and I'm overwhelmed!! the new input system is, I think, great, but I am still wrapping my head around it - your videos are helping immensely, but it's still taking me some time to work it all out! Without your videos, I would for sure have just given up by now. So thanks again!
@samyam
@samyam 2 года назад
Glad to hear!! :)
@atomiz2002
@atomiz2002 Год назад
you should be getting paid for teaching so thoroughly i cant imagine the amount of preparation it requires to simplify so clearly all the information for the learners (and i thought brackeys was the best tutorial creator out there even though his tutorials are kinda outdated now but guess who im switching to nowww) p.s. the amount of side videos linked to this one is incredible
@alexocaber
@alexocaber 2 года назад
This was incredible thank you so much with your help I was able to overcome a problem that I had been stuck on for 3 days, and I really struggled elsewhere and with the documentation as well, thank you so much!!!
@samyam
@samyam 2 года назад
Glad to hear!! 😁
@yuxue2801
@yuxue2801 2 года назад
This is very useful even for VR, the XR Interactive Toolkit takes a very similar approach as the Input System(I just looked up: the XR Interactive Toolkit depend on the Input System), all the knowledge fits nicely in VR, the action based controller, input action, binding, several different ways to get the user input in code. Appreciate your sharing. Thanks.
@filipezanella825
@filipezanella825 4 месяца назад
I confess I'm impressed. this video is great and explain everything really well.
@despia5274
@despia5274 2 года назад
I've been confused in adapting new Input system since I'm a beginner in Unity, but this video helped me so much. Thanks a lot!
@GrievousFlame
@GrievousFlame 2 года назад
Awesome video, the input system has some great features but its presentation is very confusing, you've made it much easier to understand how it can be used, thanks!
@samyam
@samyam 2 года назад
Glad you enjoyed the video!
@creationsmaxo
@creationsmaxo 2 года назад
Great video! The one thing that makes Control Scheme such a great part of the Input System is its implemented listening & switch option. Let's say that you want to allow the player to use either a Mouse and/or just a Keyboard or a Controller. Obviously, the kind of inputs will varies where one scheme might requires a press of a button to initiate the use of another input and so on so, originally, you mostly had to add some sort of full-time listener to any action of any device "not in use" so that you can apply some kind of switch as to what the player uses in case he or she decide to change which control to use mid-game. For example, let's say that you have a zoom function in a isometric-viewer Action RPG that allows the player to zoom in and out. On Mouse & Keyboard, simply scrolling the mouse wheel does the trick and, in case someone prefer to player using only a keyboard, it's fairly simple to add additional binding to some Numpad keys. But what about the controller? What if, to zoom in and out, the player has to toggle the zoom-in-out prior and after zooming with something like the right stick as, otherwise, the left stick is used to aiming? This is where the Input System does a really good job because its gives many ways of "knowing" and handling what is going on instead of just attempting at reading every small possibilities out of the players' reach.
@mellaytheghost
@mellaytheghost 2 года назад
Took so long for me to find a video that made sense, thank you!
@basavarajguled848
@basavarajguled848 6 месяцев назад
this is the best tutorial to know everything with new input system, thank you so much for creating such wonderful tutorial
@CymbalMonkey
@CymbalMonkey 2 года назад
Happened to stumble on this video, going through checking out to resolve an input error. This is a very informative video, really clear and I will definitely be coming back when I need to set up input. I subbed because of this. Thanks for the video : ]
@samyam
@samyam 2 года назад
Thanks so much!
@lilSapphireFox
@lilSapphireFox 2 года назад
I started to scream when you used the update function. Good thing you saved it :D I have been working with unity for over 3years now and I think I use Update in maybe 3 or 4 of my hundreds of classes, and only with an if statement. it's really usually unecesarry to check something every frame...
@MiniatureGiantsGameDev
@MiniatureGiantsGameDev 2 года назад
immediate, easy, answer for something I was overcomplicating loads - Keyboard.current.etc.....subscribed :)
@samyam
@samyam 2 года назад
Thanks! :)
@Jumph96
@Jumph96 Год назад
Thanks so much for making this video, I've heard about this new Input system but was hesitant to jump to it as I'm already struggling with lots of other parts of the game I'm making, but you've helped me understand why and how it can help me down the line especially when it comes to allowing the player to rebing actions. Once again, thank you so much for also going really in depth and show us all the different ways you can use/create an Input Action asset 👍. You just gained a new Subscriber 😃
@Brioshie
@Brioshie Год назад
This is very very helpful. The new Input system felt needlessly complicated to me
@codersexpo1580
@codersexpo1580 Год назад
Just a small note here: @6:06 for WASD, NOTE: "When adding a composite, only ones compatible with the value type of the current action are shown. This will, for example, no longer display a 2D Vector composite as an option on a floating-point button action". To show the 2D vector composite just change the action type to "value" and the control type to "Vector2". Now the 2D vector composite option will appear. So @5:45 that's a very important step.
@ciixo8510
@ciixo8510 3 года назад
Best channel on covering unity's input system! One question i had tho, how can we get a hold functions duration to use it on something like ui, the callbackcontext has a duration value but it doesn't seem to be registering correctly while holding down the key, it would be a great thing to cover on a seperate video!
@samyam
@samyam 3 года назад
Thank you!! If you have an interaction you can get the completion percentage with action.GetTimeoutCompletionPercentage() already have a video on that ;) 14:57 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rMlcwtoui4I.html
@bernharddoesuxinmedtech6548
Outstanding, I tried a different tutorial first, was still confused. Your's was exactly what I needed, many thanks. As soon as Patreon offers a reasonable way to create a receipt for the inputs, my company will join! And yes, I tried ko-fi, but PayPal didn't work 😞
@samyam
@samyam Год назад
Thank you so much I appreciate it!! I also have RU-vid memberships available, although the perks are a tad different than Patreon because I can’t redistribute files easily yet.
@bernharddoesuxinmedtech6548
@@samyam Paypal worked this morning, so you should have received a few well deserved coffees via ko-fi 😀
@Coouge
@Coouge 2 года назад
@19:48 I'm confused. You mentioned you recommend using Invoke Unity Events but then you said you don't recommend doing it.
@jamesnguyen3459
@jamesnguyen3459 Год назад
a very good tutorial. I'm learning Input System for VR and you made this so clear
@denn501
@denn501 7 месяцев назад
Many thanks!! Now my player scripts are looking nice and tidy :D
@panupongkaewsamer6637
@panupongkaewsamer6637 3 года назад
You are good teacher for Unity engine
@samyam
@samyam 3 года назад
Thank you :)
@tarekmustafa2525
@tarekmustafa2525 2 года назад
Best video about the input system I found do far! Well done!
@samyam
@samyam 2 года назад
Thanks!
@imnot_RAUL.28
@imnot_RAUL.28 Год назад
Thank you for tNice tutorials, tNice tutorials was a huge help.
@how-to-make-a-game
@how-to-make-a-game 5 месяцев назад
WOW SUCH DETAILS AT SPECIFIC TOPIC , GREAAAAAAAAAAAAAAT!!
@jessestewart5109
@jessestewart5109 2 года назад
I got super confused around 20:30 when you started commenting out a lot of code to use the PlayerInput, then uncommented it. Definitely a high quality tutorial, I just couldn't follow along, unfortunately.
@samyam
@samyam 2 года назад
Apologies, will keep this in mind for future videos :)
@robosergTV
@robosergTV 2 года назад
Please now make vids about the new Ui Builder, you covered the new input system amazingly!
@samyam
@samyam 2 года назад
It's on my list! Thank you :)
@rasi123ful
@rasi123ful Год назад
Thank you so much for all these tutorials bro. So much valuable knowledge
@timmemedia
@timmemedia 2 года назад
Great tutorial, covered everything i needed and more! Also i like the way you say 'buddons'.
@samangolahmadi2710
@samangolahmadi2710 2 года назад
god damn, thanks girl, this is the best tutorial out there
@ericwoll
@ericwoll 3 года назад
Excellent video. Awesome confusing bug I came across was that on input action asset that you can create from the player input component I couldn't see any input devices. For whatever reason it worked fine when I created my own control scheme, but not with the generated or "No Control Schemes". Seems to work fine in this video.
@samyam
@samyam 3 года назад
Thanks! Sometimes the system can be a bit buggy, perhaps upgrading to a preview version may help with some of the bugs :)
@salimnihat6966
@salimnihat6966 2 года назад
Thats the way of showing how to use something good job ! Loved it
@hunterxgirl
@hunterxgirl 2 года назад
This saved me a lot of time and many cups of coffee
@ZenryokuFGC
@ZenryokuFGC Год назад
consistently clear and helpful videos, thanks so much!
@ChronikSpartan
@ChronikSpartan 11 месяцев назад
Unbelievably helpful as always!
@s.w.e.d.3057
@s.w.e.d.3057 3 года назад
mobile inputs, like holding and dragging would be a great video idea
@samyam
@samyam 3 года назад
Thanks for your input! I'll keep it in mind. I've made some videos on Touch, Swipe, and Pinch; here's my Input Touch playlist ru-vid.com/group/PLKUARkaoYQT1Xwd9Az_cx-YbdvdUDNN5I
@s.w.e.d.3057
@s.w.e.d.3057 3 года назад
@@samyam nice amazing.! Thanks a ton and I would love to ask u some stuff on unity but I guess that's what patron is for lol. Amazing job, and the fact your voice is mellow really helps follow along or just listen to.
@samyam
@samyam 3 года назад
@@s.w.e.d.3057 Thanks! We also have a discord where you can ask help questions :) discord.gg/SwCKB3Q
@-.._.-_...-_.._-..__..._.-.-.-
@-.._.-_...-_.._-..__..._.-.-.- 3 года назад
Thank you so much! This is easily the most clear and concise tutorial out there.
@samyam
@samyam 3 года назад
Thanks :)
@mislavpozek4269
@mislavpozek4269 2 года назад
Awesome video, best one on the topic i've seen, thank you Personally i prefer to use the input action references; my reasoning being that you shouldn't hardcode a string that can be easily changed by someone in the editor
@samyam
@samyam 2 года назад
That's true, to each their own!
@Khaled_The-Nazi
@Khaled_The-Nazi 3 года назад
Cool video it's fun i've watch it cuz it's fun for me at least and im gonna Watch it again :D
@samyam
@samyam 3 года назад
yay!
@hassamlayachi351
@hassamlayachi351 Год назад
God, I'm glad I found your video that helped me
@londonh
@londonh Год назад
Incredible tutorial! You are an amazing teacher, thank you so much!
@chaosmastermind
@chaosmastermind 2 года назад
My GOD.. I've been spending at least 10 hours on trying just to get WASD movement and Space to jump to even register in the debug log, and you got it working for me in less than 20 minutes. I love you, I want to have your babies. Thank you. All the other tutorials I watched were using super outdated versions or didn't have the new input system at all. Or they made it super complicated for no reason. Thanks again. Now I can finally go to bed... >.
@tobias-stein
@tobias-stein 2 года назад
Very smooth to digest your input, thanks for the content :)
@parcell-komunika3069
@parcell-komunika3069 Год назад
Ima download it thanks for sharing!!
@ForkmachineGames
@ForkmachineGames 3 года назад
keep it up ❤️
@samyam
@samyam 3 года назад
Thank you!
@morningstar7071
@morningstar7071 3 года назад
best tutorial doesn't exi---
@damiancds1
@damiancds1 3 года назад
I had started using the new system about a week or two before I found this video and I'm not sure if I'm doing something terribly wrong. Right now I have an action map with actions such as Jump or Dash, and I'm referencing them in my scripts with OnJump or OnDash as if they were functions. I haven't enabled anything, the only thing I've done is included it the input system via using UnityEngine.InputSystem and created a reference to the CharacterController (which the functions/actions influence). This way seems so much simpler than what you're showing and I don't know if it's going to cause a problem later on such as a memory leak or something (because I'm not enabling/disabling anything).
@samyam
@samyam 3 года назад
If the functions are called directly from the PlayerInput component (either through SendMessages, or the Events) then you should be fine. There's many ways to use the new system, you only need to unsubscribe from an event if you've subscribed to it somewhere in your script.
@Challseus
@Challseus Год назад
This is really, really good god damned content 💪. Thanks for putting it together!
@alessandronardi4201
@alessandronardi4201 2 года назад
thank you very much you solved my problems
@6TDOW66
@6TDOW66 Год назад
Lifesaver. Thank you!
@hubbubbobbin
@hubbubbobbin 9 месяцев назад
Thank you for the video!
@vamshikrishna5786
@vamshikrishna5786 Год назад
You are the GOAT
@just_rogers
@just_rogers 2 года назад
This is a great tutorial! Very helpful, Thank You!
@cahydra
@cahydra 2 года назад
Thanks samyam :D
@abdoreda7126
@abdoreda7126 9 месяцев назад
This is such a good video, thank you so much
@rohigheeindustries4697
@rohigheeindustries4697 Год назад
It worked. Thanks a lot
@okamidt3298
@okamidt3298 2 года назад
This tutorial is so confusing and makes problems bigger than they were before. Nearing the end of the video you forget you’re supposed to be explaining how to use it and instead jump into giant blocks of code that came from nowhere. So helpful.
@mostafakamal6996
@mostafakamal6996 2 года назад
Thanks a lot ... it is helping in real time game dev...
@zeroinfinity0
@zeroinfinity0 3 года назад
How to increase or decrease the value of 1d axis binding slowly and not directly to 1 or -1??..I also searched on web but people are saying there aren't any direct way to do it using new input system so i think you might give me the solution...
@samyam
@samyam 3 года назад
Unfortunately there is not a direct way in the input system to do so: you'll have to do it manually, you can use the SmoothDamp function docs.unity3d.com/ScriptReference/Mathf.SmoothDamp.html
@hamzahumayun2200
@hamzahumayun2200 Год назад
This is great, thank you!
@smallflyDE
@smallflyDE 2 года назад
Very good tutorial! Thank you very much for the explanation of the new input system! For me personally the video had a bit too much content (luxury problem). I wanted to quickly understand the best practice on how to work with the new input system (which you explained). But instead of telling only the best way, then say good bye and refer to another video for more (unnecessary but interesting topics regarding the new input system), you mixed all into one video. Nevertheless you covered also the recommended way and thus its fine for me. The rest I tried to ignore ;-)
@samyam
@samyam 2 года назад
Thanks for the tip! I’ll keep that in mind :)
@akanopoi6177
@akanopoi6177 2 года назад
why every time i modify the default input action, every change goes back to default the next time i open unity?
@andreluizbrazil
@andreluizbrazil 2 года назад
Thanks samyam, for this excellent video :)
@chrisheld8463
@chrisheld8463 Год назад
Excellent tutorial. Simple & informative. Well done :)
@samyam
@samyam Год назад
Thank you!
@riceandbeansowo4165
@riceandbeansowo4165 2 года назад
My jumpAction.ReadValue(); doesn't work in awake but it does for update?
@MatthiasTTV
@MatthiasTTV Год назад
Great content on your channel, you have a new subscriber! But here I got completely lost when you were explaining the recommended way of PlayerInput--you said the problem with UnityEvents is that it combines all the phases (started/performed/canceled) into one, but then when you showed the PlayerInput you just showed ReadValue and not how to access the different phases. So I'm still not really sure how to call different functions when different buttons are pressed. Do I have to read all the actions like "Jump", "Explosion", etc. all in the Start function and call functions accordingly?
@lornemalvo5664
@lornemalvo5664 2 года назад
How can i listen Android Hardware Back Button with new input system. I tried Usages>Back on InputAction but not worked
@cade5792
@cade5792 11 месяцев назад
Great tutorial!
@benvella1728
@benvella1728 2 года назад
Any video on control schemes? Adding one is causing everything to break. I bind wasd and mouse to one scheme and Lstick and Rstick to another and for some reason I can only move with Lstick, not wasd and only look with mouse not rstick. Boggles my mind
@benvella1728
@benvella1728 2 года назад
I ended up deleted these for anyone's future reference and everything can work simultaneously. Not sure what's wrong with it but I've given up trying to figure out, and kept moving on with my tasks.
@lucianomcardoso
@lucianomcardoso 2 года назад
Samyam: 18:25 "However this is not the recommended..." Me: What! Curse Word with B!!! Lost 18 min of my life!!! Just kidding, its nice to understand both ways, thx for sharing.
@samyam
@samyam 2 года назад
Haha it’s good to know all the ways! Maybe one fits your use case better than the other :)
@jacksteege5091
@jacksteege5091 2 года назад
Great video full of information. Thank you!
@user-oh1eg9nz7c
@user-oh1eg9nz7c 11 месяцев назад
Hello everyone To be honest, I've reviewed the entire forum and the entire search engine, but I can't find a solution to my problem: I am using a new input system and the following messages started appearing at startup: Map count in old and new state must be the same. How can this be fixed?
@matthewbergman6803
@matthewbergman6803 Год назад
Is there a way to put something like Shift+WASD or Alt+WASD on the input system? I want my player to switch targets while targeting. If they hold Shift, and then while holding shift press WASD, they will change their targets to the above/right/below/left.
@elitefusionz02
@elitefusionz02 Год назад
I get this error in my console. I'm trying to open/close various things. NullReferenceException while executing 'performed' callbacks of 'Player/E[/Keyboard/e]' UnityEngine.InputSystem.LowLevel.NativeInputRuntime/c__DisplayClass7_0:b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr)
@LukeHwarang
@LukeHwarang 3 года назад
Great tutorial, as always!
@samyam
@samyam 3 года назад
Thanks! :)
@user-oh1eg9nz7c
@user-oh1eg9nz7c Год назад
Вы прекрасны! Самый лучший урок!!!
@seraph1007
@seraph1007 3 года назад
Great video, unfortunately it was 1 day late since I got my project working yesterday with the new input system haha. This is unrelated to this video but on another video where you used a joystick, is there a way to make it into a floating joystick (entire joystick moves to the finger position then the joystick gets fixed there) I tried the default on mobile and it doesn't feel very smooth.
@samyam
@samyam 3 года назад
Thanks! Yeah you can change the On Screen Stick component to fit your needs, you can have a specified area that the user is allowed to touch for the joystick, then once the user touches that area you can enable to joystick there, and disable it when the use stops touching in that area answers.unity.com/questions/992906/placing-a-rect-and-detecting-a-touchtap.html
@yokj9081
@yokj9081 3 года назад
@@samyam excuse me I have some unity question. somebody can help me?I am Taiwanese so my English is not well.
@StormyDoesVR
@StormyDoesVR 2 года назад
the PlayerControls setting isn't working for me, says it can't find that.
@nanyubusnis9397
@nanyubusnis9397 10 месяцев назад
4:05 Do keyboard&mouse count as 1 input device?
@keremaslan1988
@keremaslan1988 Год назад
Would it be okay if I use Player Input component in several objects?
@johndigirolamo5858
@johndigirolamo5858 Год назад
Your tutorials on the Input System are fantastic! What are you using for VS Code extensions? I can't never install one that give me a list of properties that are accessible and the autosuggest/complete for anything is a nightmare.
@Alimoselhy1304
@Alimoselhy1304 Год назад
I also really like softEX, it has a very nice effect to it
@mahdijalali3858
@mahdijalali3858 2 года назад
Why my main control script (inputSystem script) have some errors?. after UnityEngine.InputSystem. I can't find InputActionPhase?
@samyam
@samyam 2 года назад
Make sure you put it exactly: using Unity​Engine.​Input​System; docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.InputActionPhase.html What's the exact error?
@missing_the_texture
@missing_the_texture 2 года назад
i have import input system but there isn't any input action in my unity _ help😭
@whidzee
@whidzee 2 года назад
how would you go about handling a bluetooth button to be an input for a game? I am wanting to make a mobile game and have a bluetooth button (the buttons you can get from aliexpress which bluetooth to the phone to allow you to take selfies without touching the phone). I have one of these buttons but I can't work out how to get unity to detect it as an input.
@thomaswatson6991
@thomaswatson6991 2 года назад
Hello, samyam could you explain to me why my code pops up with the error "There are inconsistent line endings in the 'Assets/Scripts/PlayerControls.cs' script. Some are Mac OS X (UNIX) and some are Windows. This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands." until i fix this problem i can't move my player or have the jump
@hanadanefa7837
@hanadanefa7837 2 года назад
why I'm not reading any value when I pressed WASD button? did I missed something? I did copied what you did but not sure what is the problem though I'm not receiving any error on my console.
@hanadanefa7837
@hanadanefa7837 2 года назад
hahaha, ok I know what makes it not work :D I should click on the game for it to work :D I'm clicking the console so it doesn't read the input because the active is the console and not the game. anyway thanks. got it already, and it is very good tutorial. Very good explanation especially for the new in unity.
@r1pfake521
@r1pfake521 3 года назад
Is this a reupload? Im confused, because you already showed these things
@samyam
@samyam 3 года назад
This is an updated version with more information, the different ways to use the system, and I show the “recommended” way. And it serves as a good summary of a couple of my videos into one.
@r1pfake521
@r1pfake521 3 года назад
@@samyam Ah I see, thanks. I will add it to my watch list
@blinkachu5275
@blinkachu5275 2 года назад
playerInput does not contain a definition for "actions" Any idea what the cause of that could be?
Далее
The comments on my game were interesting....
9:00
Просмотров 18 тыс.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Using docker in unusual ways
12:58
Просмотров 438 тыс.
The Power of Scriptable Objects as Middle-Men
17:41
Просмотров 123 тыс.
Use Unity's Input System Like a Pro
24:48
Просмотров 26 тыс.
Unity's New Input System:  The Definitive Guide
32:07
Просмотров 26 тыс.
choosing a game engine is easy, actually
15:08
Просмотров 423 тыс.
Gli occhiali da sole non mi hanno coperto! 😎
00:13