- Home /
Unity editor freeze exiting play mode
Hello everybody! When I exit the play mode in editor I got freezed. I have this setup: - Unity 5.4.0 - -steamVr plugin with HTC Vive - - another plugin that is doing a bluetooth communication with an external companion app.
I'm pretty sure that the plugins work well alone without any kind of problem, but when I use them together unity freezes. In particular in the main script I wrote:
void OnApplicationQuit()
{
Debug.Log("Closing app...");
BluetoothPluginInterface.onCloseApplication(); // The problem is here!!
Debug.Log("APP closed!");
}
Where the bluetooth plugin is called and the ports are closed. Now, my question is: Are all the OnApplicationQuit() functions called all together? Is it an Editor problem?
PS: I've also tried on the builded app and it seems there are no problem. So probably is an editor bug (?)
Sorry for my bad english. If it is not clear, I'll try to explain better.
Regards
Your answer
Follow this Question
Related Questions
Unity Editor freezes after exiting playmode 2 Answers
Game Freezes In The Editor After Hitting Play 2 Answers
Unity VR (XR) enable/disable VR on startup in Editor and as standalone. 1 Answer
Singleton and MonoBehaviour in Editor 1 Answer
difficulty with InitializeOnLoad and Application.isPlaying 2 Answers