Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity: Application keeps running in background although Application.runInBackground is false

I'm currently developing some Unity project(this is my first one, I'm not familiar with Unity) and what bothers me is that breakpoints are still hitting when I minimize Unity editor window although I have Application.runInBackground == false so the app should be suspended while in background, but it is not ! Only the UI gets frozen and music stops while the actual code is continue executing. So, I'm basically wondering if this is general behaviour or this only happens when you're running in editor to allow debugging and in release builds code execution stops ?

like image 340
Jim Smith Avatar asked Nov 22 '25 20:11

Jim Smith


1 Answers

I had similar issues. I found that it is because I have an IDE attached to Unity and only then did this happen. When you switch to release mode, everything go as it's supposed to - debug mode in Unity.

like image 106
Kerwish Avatar answered Nov 24 '25 11:11

Kerwish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!