Search Unity

Bug Unable to Quit the game!

Discussion in 'Input System' started by gaurav94, Apr 18, 2023.

  1. gaurav94

    gaurav94

    Joined:
    Sep 14, 2015
    Posts:
    3
    So we are working on a Simulator for which we are using a custom build Control Board which is having USB-Module inside it with. The Buttons and knobs of that control board are wired using the same usb-module and the control board then gets connected with PC using USB cable for inputs.

    We are able to get the inputs from that control board successfully but when we are trying to quit the simulator using Application.Quit() then it gets hung until we are giving any input from the Control Board.

    Later we remove the Quit Button from the simulation and let user use the Windows Default close button, it is showing same behavior on that as well, Application gets hung and doesn't response but if user presses any button from physical control board then it closes.

    Please help!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    Sound like you are not properly shutting down that USB thingy, whatever it is.

    Go see the documentation for it so that you understand both how to start it as well as to tell it to terminate.