Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Feedback InputActionPhase.Canceled Always Call.

Discussion in 'Input System' started by dzjf525, Feb 2, 2023.

  1. dzjf525

    dzjf525

    Joined:
    Jan 11, 2023
    Posts:
    13
    I use PlayerInput to get joystick data.
    upload_2023-2-2_13-21-31.png
    The Cancelled stage is called every frame, and the inputMovement is set to 0, so that my data in update is always 0.
    upload_2023-2-2_13-22-38.png
    But if you only go to the Performed stage, you don’t know when it will end, and the character will keep moving
    upload_2023-2-2_13-21-38.png
    How to deal with this situation?
     
  2. dzjf525

    dzjf525

    Joined:
    Jan 11, 2023
    Posts:
    13
    upload_2023-2-2_13-31-59.png
    Basically every frame takes the value of cancel.
    This value has always been Vector2.zero before. After changing the system settings, it has a value now, but it still cannot be used.