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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Keyboard and all input suddenly stopped working?

Discussion in 'Scripting' started by Desprez, Feb 24, 2017.

  1. GRM_

    GRM_

    Joined:
    Jul 21, 2019
    Posts:
    3
    It almost drives me crazy, it was because when I duplicated a TMP_Text, on the canvas of a secondary camera unity decided to make it's scale 100 and it was intercepting raycasts on the main camera which was on the other end of the scene.

    It's probably not the case for most of you with the problem but it's worth checking.
     
  2. MasterFoo

    MasterFoo

    Joined:
    Apr 12, 2018
    Posts:
    4
    this is the solution guys
     
  3. mikemccubbins

    mikemccubbins

    Joined:
    Feb 25, 2022
    Posts:
    1
    The "Time Scale" setting is also what worked for me. Likely because I was using a "pause game" script that set the time scale to 0 during some dialogue interaction and my project crashed during this interaction
     
  4. kael81

    kael81

    Joined:
    Mar 19, 2022
    Posts:
    2
    Had the same, my problem was that I had another object in scene with a PlayerInput component with same PlayerInputActions.
    I just removed the PlayerInput component from the other object and it works again.
     
  5. Movietone

    Movietone

    Joined:
    Aug 9, 2017
    Posts:
    2
    [SOLVED] I had the same issue. Nothing mentionted here helped me. So my problem was causing by gamepad (dualshock 4). And that is the key. So firstly i deleted gamepad from supported devices.
    upload_2022-5-13_1-21-3.png
    That helped, everyhing again started working fine. Exept for gamepads. So i added xbox gamepad. With DS4Windows everything was fine again. And then i added dualshock. So it caused random inputs at start and disabled any keybouad input (as was before). I must mention that dualshock wasn't connected to my PC. IT WAS ONLY IN SUPPORTED DEVICES. Connection didn't help.
    A day earlier i played a game using my dualshock via bluetooth. That is why it was in my bluetoth connected devices. So deleting it from that list solved everything. Gamepad now doesn't cause any issues and everything works.
    I knew about issue with bluetooth connection for dualshock in unity input system. And this issue is fixed in upcoming 1.4 version of input system package.
     
  6. AjayDas

    AjayDas

    Joined:
    Apr 4, 2021
    Posts:
    1
    Thanks a lot, bro! Inputs work just fine in game mode but not in simulator mode.
    Is there any reason that it's not working in simulator mode? how can I fix it?
     
  7. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    37,111
    Rather than hijacking some random thread from 2017, set yourself up for success by creating your own fresh post... it's FREE!

    When you post, remember that nobody here knows anything about your setup, plus we cannot read your mind. Therefore, you must communicate very clearly and completely.

    How to report your problem productively in the Unity3D forums:

    http://plbm.com/?p=220

    This is the bare minimum of information to report:

    - what you want
    - what you tried
    - what you expected to happen
    - what actually happened, especially any errors you see
    - links to documentation you used to cross-check your work (CRITICAL!!!)

    If you post a code snippet, ALWAYS USE CODE TAGS:

    How to use code tags: https://forum.unity.com/threads/using-code-tags-properly.143875/
     
  8. brian-nielsen

    brian-nielsen

    Joined:
    Apr 18, 2018
    Posts:
    15
    Seems like we have a tier list now.
    1. Restart Unity
    2. Resize window/minimize window
    3. Check that you have an Event System (the specific components may change depending on your Input System choice)
    4. Check that your Time Scale didn't get set to zero. (Edit > Project Settings > Time > Time Scale).

    Did I miss any?
     
    sederfan likes this.
  9. sederfan

    sederfan

    Joined:
    May 2, 2022
    Posts:
    4
    I have exactly the same problem, none of the replies here helped me so far but I was wondering how do you restart unity step by step cause I have searched it but still I couldn't figure it out

    I created another object with a simple script on it using a new Input action asset and everything works fine so I created a new Input action asset for my player object and when I tested it didn't work funny enough I moved all my assets to a new project expect input action ones(I wanted to create them from scratch in the new project) and it didn't work again(I moved all my assets to another project and tested it but that didn't work either), I deleted and reinstalled the input system package but didn't work
    I haven't tried using an earlier version of input system package maybe that helps, so if you have any idea about how to fix this problem please help me Thank you.
     
  10. Drakenfrost

    Drakenfrost

    Joined:
    Jan 29, 2021
    Posts:
    2
    With regards to the keyboard inputs, MAKE SURE that you are in the "Game" window and not in a mobile "Simulator" window. Mobile simulator will not receive keyboard inputs from Unity's old input system. I am not sure about the new input system.