How can I keep Audio from losing focus when not in Editor?
Hello. I have an Ambient looping Audio playing in my game, but it only plays when I click the game window. When I have my mouse click somewhere off screen, it stops playing. I know this is probably an issue with OnFocus. Is there a way in Blueprint to play the Audio continuously, even when the game is NOT in focus?
This has been moved to the Engine.ini file as of 4.6:
In the DefaultEngine.ini or any of the Engine config files where you would need to change this just set:
answered Aug 16 '15 at 04:37 AM
If anyone is still wondering, I figured it out!
The engine automatically mutes itself whenever the window is not focused.
// if its our window, allow sound, otherwise silence it GVolumeMultiplier = HasFocus ? 1.0f : 0.0f;
All I did was comment out that line and viola- it works!
answered Jul 14 '14 at 06:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here