- Home /
Facebook popup hidden behind Unity Object in Chrome
Hi, I made a facebook apps for my Unity game. It basically able to show friend list, buy credit, and earn credit pop up. It shows up fine with firefox, opera, but not in Chrome. In Chrome, the popup is hidden behind the Unity Object. Is there any way to fix this by changing the embed param? Anyone has experience the same thing? Or should I ask facebook for help?
Notes: The page only contains full page Unity game and I only use the embed code straight from the template given.
Answer by ScroodgeM · Aug 31, 2012 at 11:23 PM
these two simple functions in web page JS i'd use to show facebook popups
function ShowGameWindow() { uni.style.width = '100%'; uni.style.height = '100%'; document.getElementById("UnityPrompt").style.height = '100%'; } function HideGameWindow() { uni.style.width = '1px'; uni.style.height = '1px'; }
Does the same method apply for the Notification and Chat options of facebook?
This is to hide the Unity Object when popup show right? What is the UnityPrompt for?
this method hides unity window from web. it means you can see all other windows. this can be applied to any window that you want to show. UnityPrompt is parent web window for web player embed area to correctly resize it in all browsers.
what is uni here?
is it something like uni = document.getElementById('unityPlayer');
i tried the above and i jus tried uni also but cant get any change.. still the pop up is behind
Answer by ahn2150 · Oct 10, 2012 at 02:17 AM
I has many hour for try... My Answer.. Does not matter if, Have change 'FB.ui display type' to 'popup'