简体   繁体   中英

Dialogs from facebook sdk pause my unity3d game on android

This is my first post here.

I have a problem w facebook sdk for unity. I use version 7.8.0 and unity 5.3.4f1. The problem is, when any facebook dialog shows up, my android game pauses and the background music stops playing.

I've already tried to set Application.runInBackground to true, but it didn't help. I also pass null as second argument of FB.Init method.

Has anybody encountered this problem? Is this a limitation of unity or is there a walkaround? In Clash Royale there are the same facebook dialogs as in my game, but they don't pause the background music. But Supercell studio has its own game engine.

Any help will be greatly appreciated.

“在编辑器中,转到“编辑”->“项目设置”->“播放器。”检查器窗格现在将更改为显示播放器设置。查找显示“在后台运行”的选项并进行检查。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM