Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Discussion losing joystick input if mouse clicks on another app or another part of Unity editor

Discussion in 'Input System' started by uc2022, Nov 17, 2022.

  1. uc2022

    uc2022

    Joined:
    May 20, 2022
    Posts:
    6
    I need to run my app in the Unity editor, not from a build. In this app, I'm getting the user's joystick input with
    Input.GetAxis("JoystickVertical")
    in the script.
    But whenever I click on somewhere else than the Game view or another app, I lose the joystick input until I click back on the Game view again. Why is this happening? Is this a bug? How can I prevent losing the user's joystick input when I click on somewhere other than the Game view during gameplay?
     
    Last edited: Nov 17, 2022