New Input System in unity 2023

  Рет қаралды 6,855

ChronoABI

ChronoABI

Күн бұрын

Пікірлер: 56
@slgremory
@slgremory 4 жыл бұрын
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!!
@matthewfillinger835
@matthewfillinger835 4 жыл бұрын
I laughed so hard at "context, not control, GOD DAMNIT!
@chronoabi
@chronoabi 4 жыл бұрын
What video on Game Development would you like me to make?Please let me know in the comment section down below.
@mrgexia2729
@mrgexia2729 4 жыл бұрын
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?
@abelhernandez9405
@abelhernandez9405 4 жыл бұрын
How about a 2D grappling hook tutorial!
@nicholas5505
@nicholas5505 3 жыл бұрын
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.
@abelhernandez9405
@abelhernandez9405 4 жыл бұрын
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!
@MiketheNerdRanger
@MiketheNerdRanger 4 жыл бұрын
This tutorial was excellent! I finally understand the new input system more now
@artyalex
@artyalex 3 жыл бұрын
This tutorial saved me!!! Thanks for helping me understand the new Input system!!!!!!
@chronoabi
@chronoabi 3 жыл бұрын
Glad i could help and whould you like to know how to make a player(basically like Hollowknight) using the new input system??
@artyalex
@artyalex 3 жыл бұрын
@@chronoabi Yes I would!
@izeckx
@izeckx 4 жыл бұрын
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!
@chronoabi
@chronoabi 4 жыл бұрын
Glad it helped!
@roydonk2878
@roydonk2878 4 жыл бұрын
Thanks for the video. I like your way of implementing the input system more than other ways I've seen.
@willemlottering3536
@willemlottering3536 4 жыл бұрын
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.
@TheMaceloLaian
@TheMaceloLaian 4 жыл бұрын
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; }
@moniburhaque7612
@moniburhaque7612 3 жыл бұрын
Thank you so much sir . This video is so helpful for me.
@chronoabi
@chronoabi 4 жыл бұрын
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.
@Bardent
@Bardent 4 жыл бұрын
Hitting the like button was super easy, barely an inconvenience!
@elijahantony4300
@elijahantony4300 4 жыл бұрын
Nicely done
@husniaezz2922
@husniaezz2922 4 жыл бұрын
Thanks a lot for the video, its so helpful.
@mattshroom33
@mattshroom33 4 жыл бұрын
I understood this video best when attempting to understand the new input system. Thank you!
@user-dm5qi4nb6l
@user-dm5qi4nb6l 4 жыл бұрын
OMG IT WORKED I've been trying all day...!!! man I love you!!! :*
@chronoabi
@chronoabi 4 жыл бұрын
Glad I could help
@QuackersMcCrackers
@QuackersMcCrackers 4 жыл бұрын
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.
@chronoabi
@chronoabi 4 жыл бұрын
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
@QuackersMcCrackers
@QuackersMcCrackers 4 жыл бұрын
@@chronoabi Oh ok, thank you very much! May the love of 1000 ducks guide you! ^_^
@Rhino123freak
@Rhino123freak 4 жыл бұрын
Hi, it would be really helpful if you explain how we can get say the mouse position through the context.
@user-dm5qi4nb6l
@user-dm5qi4nb6l 4 жыл бұрын
how to spawn a game object when clincking ?
@DUBSkyLinEx3
@DUBSkyLinEx3 4 жыл бұрын
If it doesn't work for someone don't forget to put control.Player.Enable(); into the Awake function
@TheMaceloLaian
@TheMaceloLaian 4 жыл бұрын
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
@izeckx
@izeckx 4 жыл бұрын
@@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);".
@atharihd297
@atharihd297 3 жыл бұрын
Comments on script made so clear :)
@MiketheNerdRanger
@MiketheNerdRanger 4 жыл бұрын
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.
@MoonLiteNite
@MoonLiteNite 4 жыл бұрын
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-threads1
@Wisdom-threads1 4 жыл бұрын
thanks bro , i like your explanation method, can you make video about 3d , and addforce using this new Input System.
@MrAlbytheworm
@MrAlbytheworm 4 жыл бұрын
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
@chronoabi
@chronoabi 4 жыл бұрын
I don't know but brackeys has a video on joysick control with new input system. That may help
@saintfox5405
@saintfox5405 4 жыл бұрын
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.
@chronoabi
@chronoabi 4 жыл бұрын
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
@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.
@willemlottering3536
@willemlottering3536 4 жыл бұрын
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.
@mintydog06
@mintydog06 4 жыл бұрын
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.
@chronoabi
@chronoabi 4 жыл бұрын
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
@mintydog06
@mintydog06 4 жыл бұрын
@@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.
@m0ty
@m0ty 4 жыл бұрын
I've seen like 10 videos about the New Input System and each one uses it differently. 😵
@chronoabi
@chronoabi 4 жыл бұрын
I know right and many of them looks soo complex
@QuackersMcCrackers
@QuackersMcCrackers 4 жыл бұрын
Omg thank God it's not just me.
@Filmblanc
@Filmblanc 4 жыл бұрын
Hey thank you for the great tutorial. This new input system is very confusing to learn.
@leooliveira103
@leooliveira103 4 жыл бұрын
Excellent tutorial! But I'm still thinking why Unity's have made it so complex to do simple tasks?
@SunilHorse
@SunilHorse 3 жыл бұрын
Man, you covered everything except bullet script, my bullets are dead on the screen, what magic lines you wrote inside HIDDEN bullet script?
@chronoabi
@chronoabi 3 жыл бұрын
Its just a bullet that goes to the right side probably using transform.translate.
@user-dm5qi4nb6l
@user-dm5qi4nb6l 4 жыл бұрын
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-dm5qi4nb6l
@user-dm5qi4nb6l 4 жыл бұрын
the debug works too
@chronoabi
@chronoabi 4 жыл бұрын
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-dm5qi4nb6l
@user-dm5qi4nb6l 4 жыл бұрын
@@chronoabi thanks!!! I'll give it a try if else I'll set with the method you teach in the video since it works
Unity's "NEW" Input System with C# Events
16:46
One Wheel Studio
Рет қаралды 93 М.
Breaking up Code in Unity (Important game dev tips for beginners)
18:36
Lost Relic Games
Рет қаралды 128 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,4 МЛН
SAVE & LOAD SYSTEM in Unity
18:20
Brackeys
Рет қаралды 1,1 МЛН
How to use the new Input System in Unity3D
42:20
Andy W
Рет қаралды 39 М.
Get Started With Unity - Input System
13:49
Dapper Dino
Рет қаралды 10 М.
I Beat Minecraft From One Grass Block
35:27
Beppo
Рет қаралды 7 МЛН
The BEST Mechanical Display You've EVER Seen!!!
13:51
Tin Foil Hat
Рет қаралды 589 М.
NEW INPUT SYSTEM in Unity
17:04
Brackeys
Рет қаралды 690 М.
Can I 100% Superliminal and Get a Refund?
23:36
Gronf
Рет қаралды 363 М.
Unity new Input System - The SIMPLEST way
8:54
RumpledCode
Рет қаралды 42 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН