I have been using Input System all wrong. This absolutely enlightened me and I'd like to thank you for making this video. There are a few things I was hoping you'd be willing to make videos on, any/all of the following would be immensely helpful: 1) How to modify horizontal motion on button press (like a character dash-attack, applying a force, modifying x-axis velocity instantaneously, etc) 2) "Better" jumping using context.started/performed/cancelled that allows the player to jump further by holding the button down longer, or to do short hops for platformers and fighting games, or any other place this may be applicable. 3) How to allow a single controller to control multiple objects. For example,using the left thumbstick to control the player, and the right thumbstick to control a floating object. 4) How to build combination inputs. The obvious example is fighting games where different "paths" of combos can be built based on he order, duration, and thumbstick-directional input of the player. 5) How to dynamically store and read back prior inputs from a different context. Perhaps this could even be part of #4. 6) How to check for input from multiple buttons at once. 7) Literally anything else related to this new Input System stuff. I really love the way you present information in a quick, concise, but clear manner, the length of the video used to explain the topic, and in general your whole video format. Needless to say you've quickly earned a new subscriber and follower in me :) Very eagerly awaiting any more Unity videos you make!!
@matthewfillinger8354 жыл бұрын
I laughed so hard at "context, not control, GOD DAMNIT!
@chronoabi4 жыл бұрын
What video on Game Development would you like me to make?Please let me know in the comment section down below.
@mrgexia27294 жыл бұрын
I am using Player Input Manager and spawn players when press of a button but I want to make a game manager script to get the ID for each player so i can store kills and stats i.imgur.com/eLkL5SB.png, how do i target that ID part in another script on the same object or such and so forth? Could you maybe cover how to make 2 players and store their stats somewhere and update it with kills and so forth?
@abelhernandez94054 жыл бұрын
How about a 2D grappling hook tutorial!
@nicholas55053 жыл бұрын
After a week of unsuccessfully trying to figure out the input systems, reading documentation and watching official unity tutorials and other youtuber tutorials, this video finally helped me figure out how to use the new input system. Thank you so much, I can finally move on with my project.
@abelhernandez94054 жыл бұрын
THANK YOU!!! I had lost all hope to get the new Input System working until I found your video! I couldn't even get my character to move with the new system. You cleared up so much info that felt very vague in the API docs. Well done!
@MiketheNerdRanger4 жыл бұрын
This tutorial was excellent! I finally understand the new input system more now
@artyalex3 жыл бұрын
This tutorial saved me!!! Thanks for helping me understand the new Input system!!!!!!
@chronoabi3 жыл бұрын
Glad i could help and whould you like to know how to make a player(basically like Hollowknight) using the new input system??
@artyalex3 жыл бұрын
@@chronoabi Yes I would!
@izeckx4 жыл бұрын
I have been searching for days and every tutorial that I've found about the new input system is either very outdated or very confusing. You have explained this in such a way that I understood EVERYTHING! Thank you!
@chronoabi4 жыл бұрын
Glad it helped!
@roydonk28784 жыл бұрын
Thanks for the video. I like your way of implementing the input system more than other ways I've seen.
@willemlottering35364 жыл бұрын
This has been the best example of how to use the new Input System can be used, much easier than binding events to methods as some of the other examples.
@TheMaceloLaian4 жыл бұрын
There's something I try to do but it doesn't work at all. I would like something like: 4:08 if(1>3) { public LeftControls control; } else { public RightControls control; }
@moniburhaque76123 жыл бұрын
Thank you so much sir . This video is so helpful for me.
@chronoabi4 жыл бұрын
Hey follow me on Discord. Link is here discord.gg/78q3HFnb69 You can ask for help , post what your working on and get motivated , show your funny bugs and memes and more.
@Bardent4 жыл бұрын
Hitting the like button was super easy, barely an inconvenience!
@elijahantony43004 жыл бұрын
Nicely done
@husniaezz29224 жыл бұрын
Thanks a lot for the video, its so helpful.
@mattshroom334 жыл бұрын
I understood this video best when attempting to understand the new input system. Thank you!
@user-dm5qi4nb6l4 жыл бұрын
OMG IT WORKED I've been trying all day...!!! man I love you!!! :*
@chronoabi4 жыл бұрын
Glad I could help
@QuackersMcCrackers4 жыл бұрын
Hey Chrono. Extremely good tutorial. Even Unity themselves couldn't make it clear as to what they were doing, nevermind why they were doing it. You make both quite clear whenever you implement something, so that really helps with the learning process. If I may ask, where did you yourself read up on all this? The Unity documentation seems to be very incomplete.
@chronoabi4 жыл бұрын
There is a video that teaches this system in a similar way that I do , I watched that . And while making this video I did a lot of trial and error
@QuackersMcCrackers4 жыл бұрын
@@chronoabi Oh ok, thank you very much! May the love of 1000 ducks guide you! ^_^
@Rhino123freak4 жыл бұрын
Hi, it would be really helpful if you explain how we can get say the mouse position through the context.
@user-dm5qi4nb6l4 жыл бұрын
how to spawn a game object when clincking ?
@DUBSkyLinEx34 жыл бұрын
If it doesn't work for someone don't forget to put control.Player.Enable(); into the Awake function
@TheMaceloLaian4 жыл бұрын
This was another video where I would do all the code and nothing would work for the new input. Why isn't your tip in the video? Thank you very much, you made my project go: D
@izeckx4 жыл бұрын
@@TheMaceloLaian Not sure why you two needed to do this. I followed his video and all I needed to make it work in Awake() is "controls = new Player_Input();" and "controls.Player.SetCallbacks(this);".
@atharihd2973 жыл бұрын
Comments on script made so clear :)
@MiketheNerdRanger4 жыл бұрын
I don't know what's happening now, but since I reopened the project, I'm getting a bunch of ambiguity errors. There's even something wrong with the code generated by the input controller thing. What's going on??? Edit: I figured it out; somehow, the input system somehow generated a duplicate C# script. I have no idea how that happened, but now I know.
@MoonLiteNite4 жыл бұрын
Meh i am getting no luck. Copied letter for letter word for word up to the debug point, and i can't get anything out in the console :( What got me last was the creating OnJump function, i guess that a future of the editor, i used notepad++ so i just manually typed it, but shouldn't have made a difference.
@Wisdom-threads14 жыл бұрын
thanks bro , i like your explanation method, can you make video about 3d , and addforce using this new Input System.
@MrAlbytheworm4 жыл бұрын
Hi Thank you for the tutorial. Im trying to map a gamepad using Vector2d which give me Up, Down Left. Right. However the value read is always -1. Any Idea on what's happening. Thank
@chronoabi4 жыл бұрын
I don't know but brackeys has a video on joysick control with new input system. That may help
@saintfox54054 жыл бұрын
Thx for the tutorial, I was struggling with this new input >.< So I was trying, based on this tutorial, to make a hold jump, where you jump based on how long you hold a button but i can't make it work. If someone know and can share how to do that, I'll be grateful.
@chronoabi4 жыл бұрын
Hey I know this is late . Like Realllly late but I just started making a 2D player with the new input system and I now know how to do that. Wanna know how😂. Really Sorry for the late reply
@juliancapeloni21564 жыл бұрын
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.
@willemlottering35364 жыл бұрын
I've got the issue when turning around when against another collider. The issue I have is when flipping my sprite the player collider ends up inside the other object (wall)'s collider and then my player is inside the wall. You may have the same issue when changing states.
@mintydog064 жыл бұрын
Thanks for this video, it's a better implementation than others I seen. I like using the Interface as it will give me an error if I forget to use one of the controls I set up. However I cannot get PS4 controls to work. It seem that it is constantly being used even when idle, as it keeps reporting that controls.phase. WASD and the Xbox pad dont do that. So when I try to WASD with the PS4 controller it won't work.
@chronoabi4 жыл бұрын
I am so sorry I don't have a controller so I don't think I can solve your problem but brackeys has a video on exactly this topic may be that will help
@mintydog064 жыл бұрын
@@chronoabi Thanks for your reply. I think he's got 2 videos, I only saw one but that didn't help. However I did manage to get WASD and the DPad working on PS4 and Xbox. I think it was playing up when I tried to add left analogue stick to the mix. But it's all working now. Thanks again, much appreciated.
@m0ty4 жыл бұрын
I've seen like 10 videos about the New Input System and each one uses it differently. 😵
@chronoabi4 жыл бұрын
I know right and many of them looks soo complex
@QuackersMcCrackers4 жыл бұрын
Omg thank God it's not just me.
@Filmblanc4 жыл бұрын
Hey thank you for the great tutorial. This new input system is very confusing to learn.
@leooliveira1034 жыл бұрын
Excellent tutorial! But I'm still thinking why Unity's have made it so complex to do simple tasks?
@SunilHorse3 жыл бұрын
Man, you covered everything except bullet script, my bullets are dead on the screen, what magic lines you wrote inside HIDDEN bullet script?
@chronoabi3 жыл бұрын
Its just a bullet that goes to the right side probably using transform.translate.
@user-dm5qi4nb6l4 жыл бұрын
I did it this way and for some unknown reason Jump() is not working. private void Start() { inputActions.Player.Jump.started += _ => Jump(); } private void Update() { Run(); } private void Run() { float moveInput = inputActions.Player.Movement.ReadValue(); rb.velocity = new Vector2(moveInput * speed, rb.velocity.y); } private void Jump() { rb.velocity = new Vector2(rb.velocity.x, jumpSpeed * Time.fixedDeltaTime); Debug.Log("JUMPING!!!!!!DAMN"); } Run() works just fine... I wish youtobe to implement a better way to display code... pls youtube pls
@user-dm5qi4nb6l4 жыл бұрын
the debug works too
@chronoabi4 жыл бұрын
Hey this is a project i was working on with the new input system . It has walk , jump , varying jump, as well as wall slide and wall jump(but its not that refined) . Maybe this will help . Clone it ok it may help github.com/ChronoABI/Pixel-Art-Animation-project
@user-dm5qi4nb6l4 жыл бұрын
@@chronoabi thanks!!! I'll give it a try if else I'll set with the method you teach in the video since it works