Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question InputAction.CallbackContext not updating

Discussion in 'Input System' started by Sanchez-Ardanuy, Feb 10, 2024.

  1. Sanchez-Ardanuy

    Sanchez-Ardanuy

    Joined:
    Jun 17, 2017
    Posts:
    2
    I've been following a tutorial using a Keyboard controller oriented with a NavMesh and InputActions, the Callback function works correctly but the variables outside of the funcion don't update correctly. I attach 2 photos with the code and the console of unity.

    Help would be greatly appreciated, thanks! Callback1.png Callbackcode.png
     
  2. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    2,058
    Where did you assign the HandleMove method to an input response?
     
    Sanchez-Ardanuy likes this.
  3. Sanchez-Ardanuy

    Sanchez-Ardanuy

    Joined:
    Jun 17, 2017
    Posts:
    2
    calback3.png