View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0011304 | Skyward Collapse | Bug - Audio | May 5, 2013 6:13 pm | May 13, 2013 8:55 pm | |
Reporter | Admiral | Assigned To | Chris_McElligottPark | ||
Status | closed | Resolution | not fixable | ||
Product Version | .800 Alpha Release | ||||
Summary | 0011304: Audio in background | ||||
Description | BUG (or annoyance): Game music continues to play when window is not at front. | ||||
Tags | No tags attached. | ||||
Internal Weight | New | ||||
|
Alternative suggestion: add "fade sound when not in focus" to the control panel. |
|
Unfortunately, with the Unity engine, there is no way for the game to know if it's in focus or not. Hopefully this will get worked out with Unity at some point. But for now, we can't do this. Sorry. |
|
Are you sure? Can't you hook MonoBehavior's OnApplicationFocus and OnApplicationPause??? (I have Unity 4, not sure which version you're using.) http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.html |
|
See note about about MonoBehavior... |
|
Yeah, I'm sure. We're not on 4 yet. When we tried to upgrade, we had some serious issues that we've not yet had time to look into resolving. |
|
Also, I would point out that OnApplicationFocus and OnApplicationPause are actually bugged. They only work if you have the game explicitly pause when it loses focus, but that kills the entire game runtime. Aka, network connections drop when you alt-tab out, among other unpleasantness. When you don't have that option on, then OnApplicationPause is not functional. We have had an open support ticket out with Unity for this since version 2.6, in 2010. |
Date Modified | Username | Field | Change |
---|---|---|---|
May 5, 2013 6:13 pm | Admiral | New Issue | |
May 6, 2013 3:15 am | zharmad | Note Added: 0031875 | |
May 7, 2013 1:44 pm | tigersfan | Internal Weight | => New |
May 7, 2013 1:44 pm | tigersfan | Note Added: 0031973 | |
May 7, 2013 1:44 pm | tigersfan | Status | new => closed |
May 7, 2013 1:44 pm | tigersfan | Resolution | open => not fixable |
May 7, 2013 3:06 pm | Admiral | Note Added: 0031983 | |
May 7, 2013 3:07 pm | Admiral | Note Added: 0031984 | |
May 7, 2013 3:07 pm | Admiral | Status | closed => feedback |
May 7, 2013 3:07 pm | Admiral | Resolution | not fixable => reopened |
May 7, 2013 3:32 pm | tigersfan | Note Added: 0031987 | |
May 13, 2013 8:55 pm | Chris_McElligottPark | Note Added: 0032244 | |
May 13, 2013 8:55 pm | Chris_McElligottPark | Status | feedback => closed |
May 13, 2013 8:55 pm | Chris_McElligottPark | Assigned To | => Chris_McElligottPark |
May 13, 2013 8:55 pm | Chris_McElligottPark | Resolution | reopened => not fixable |
May 13, 2013 8:55 pm | Chris_McElligottPark | Note Edited: 0032244 |