How to Use Unity's New Input System?

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 23

  • @otakuidiot5764
    @otakuidiot5764 Před 2 lety +1

    This is a very good and staight forward tutorial for newbies to unity like me. Will subscribe!

  • @KoryCode
    @KoryCode  Před rokem

    If you are interested to sign up for a free coaching session with me click the link bellow:
    1dpz0wt3869.typeform.com/to/kiZ2kLxY

  • @yeahboyyyyyyyyyyyy
    @yeahboyyyyyyyyyyyy Před 2 lety

    Great tutorial! Got me exactly what I needed, no time wasted. I do find the music a little bit distracting, and your microphone picks up a lot of clicks and pops from your speaking (I think your microphone is a little bit too close to your mouth, but I'm not an expert). These are just small things though. Liked and subscribed :)

    • @KoryCode
      @KoryCode  Před 2 lety +1

      Thank you for the valuable feedback! I will try to improve my audio! I glad you like the tutorial!

  • @mr.demonix9597
    @mr.demonix9597 Před 2 lety +2

    we need to get you more subs your videos are absolutely perfect my man

    • @KoryCode
      @KoryCode  Před 2 lety

      Thank You! I appreciate that!

  • @gertjacobs7457
    @gertjacobs7457 Před 2 lety

    HI , Great Tutorial , i am new to Unity, this helped a lot , Thank you , just one thing i cant master , i created a terrain with a hill, the camera doesn't accent ( Go higher) with the player. What can i add to the script to get it to folllow vertical as well

    • @KoryCode
      @KoryCode  Před 2 lety

      If you use terrain than best solution is using Unity's NavMesh for a proper solution, which is a larger topic.

  • @tregyuti
    @tregyuti Před rokem

    Hi. I press "w" then "shift" character is running. After i release "w" and then "shift", playerInput.Move.canceled nor playerInput.Move.performed not fired up. It is normal behavior&

    • @KoryCode
      @KoryCode  Před rokem

      It should , depends on your key binding. You could pop that question on our discord. I'm happy to help.

  • @mayachnya
    @mayachnya Před 2 lety +1

    You can't see the end of the line of code in the video at 11:16. What is the end of that line?

    • @KoryCode
      @KoryCode  Před 2 lety +1

      It is:
      CameraRotation = new Vector3(CameraRotation.x + rotate.y, CameraRotation.y + rotate.x, CameraRotation.z);

  • @KoryCode
    @KoryCode  Před 2 lety

    For advanced users I recommend to use FixedUpdate() instead of Update(). I will make a video on how to create fine movement controller in the future.
    Please, Check out my other videos on
    - How to Import Assets in Unity: czcams.com/video/8weyrOxcLOE/video.html
    - How to use Unity's third person controller with a Custom Avatar: czcams.com/video/j_cyWWxUKFg/video.html

  • @missing_the_texture
    @missing_the_texture Před 2 lety

    i have import input system but there isn't any input action in my unity _
    help😭

    • @KoryCode
      @KoryCode  Před 2 lety

      Did you created a new Input Action? Like this: czcams.com/video/WHaAstThZVA/video.html
      Later on you also need to create C# file to access the actions from code. Like this: czcams.com/video/WHaAstThZVA/video.html

    • @missing_the_texture
      @missing_the_texture Před 2 lety

      @@KoryCode there is no input action 1:10 in my unity

    • @KoryCode
      @KoryCode  Před 2 lety

      Here is a video where I show how to import a package to Unity: czcams.com/video/8weyrOxcLOE/video.html
      If the input system were add to the project You will find the package in the Project (Tab) > Packages (Folder) > Input System
      Or you should see in Package Manager (Tab) > Packages: In Project (Dropdown) > Input System.
      That is how you can confirm if it is actually in the project.

  • @nicolaas190
    @nicolaas190 Před 2 lety

    question, you used " JumpStarted" and then In the input actions you wrote only Jump, I am confused because I am following everything you say but that gives me an error

    • @KoryCode
      @KoryCode  Před 2 lety

      JumpStarted is only a float I store the "Time.time" last time jump were clicked. What you are after is inputActions.Player.Jump.performed += ctx => Jump() in the Awake Function. Which is make sure Jump method will be called if Player's Jump Action is performed. In the Jump method I just reset JumpStarted. But the actual jumping is happens in the Update method where I move the "player" Up and Down relative to the time passed from JumpStarted, You can see that at 12:18. (Normally this would be handled by animations but I tried to keep this tutorial simple)

  • @mathistechnology9620
    @mathistechnology9620 Před 2 lety

    After adding Value & Vector 2, When I press Move it does not give me Vector options (4:44) It just has the same binding options

    • @KoryCode
      @KoryCode  Před 2 lety +1

      Was the Move Action selected when you changed the Action Type to Vector & Control Type Vector 2?

    • @mathistechnology9620
      @mathistechnology9620 Před 2 lety +1

      @@KoryCode ....Vector2 option has been replaced with move up/down/left/right...Thanks for reply...